mediawiki-extensions-Echo/tests/selenium/specs/echo.js
Željko Filipin 30511cccdc Selenium test: alerts and notices are visible after logging in
The first Selenium test in Node.js using WebdriverIO.

Bug: T171848
Change-Id: Ie6bdc0f164e24c35db8a922df57428ec4d5452d3
2018-01-05 15:16:22 +00:00

19 lines
469 B
JavaScript

'use strict';
var assert = require( 'assert' ),
EchoPage = require( '../pageobjects/echo.page' ),
UserLoginPage = require( '../../../../../tests/selenium/pageobjects/userlogin.page' );
describe( 'Echo', function () {
it( 'alerts and notices are visible after logging in', function () {
UserLoginPage.login( browser.options.username, browser.options.password );
assert( EchoPage.alerts.isExisting() );
assert( EchoPage.notices.isExisting() );
} );
} );