mediawiki-extensions-Echo/tests/selenium/specs/notifications.js
ephemeralwaves 319808de5d Selenium: the first test for Special:Notifications
Open the notifications page and check that the notification heading is present.

Bug: T217051
Change-Id: I357e83eca9f6d6fe380ec6996fb557d578a76912
2019-03-25 15:47:38 +00:00

17 lines
464 B
JavaScript

var assert = require( 'assert' ),
NotificationsPage = require( '../pageobjects/notifications.page' ),
UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
describe( 'Notifications', function () {
it( 'checks for Notifications Page', function () {
UserLoginPage.login( browser.options.username, browser.options.password );
NotificationsPage.open();
assert.strictEqual( NotificationsPage.notificationHeading.getText(), 'Notifications' );
} );
} );