| 1 | 'use strict'; |
| 2 | |
| 3 | const assert = require( 'assert' ), |
| 4 | NotificationsPage = require( '../pageobjects/notifications.page' ), |
| 5 | UserLoginPage = require( 'wdio-mediawiki/LoginPage' ); |
| 6 | |
| 7 | describe( 'Notifications', () => { |
| 8 | |
| 9 | it( 'checks for Notifications Page @daily', async () => { |
| 10 | |
| 11 | await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd ); |
| 12 | await NotificationsPage.open(); |
| 13 | |
| 14 | assert.strictEqual( await NotificationsPage.notificationHeading.getText(), 'Notifications' ); |
| 15 | |
| 16 | } ); |
| 17 | |
| 18 | } ); |