mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-01 02:46:46 +00:00
30511cccdc
The first Selenium test in Node.js using WebdriverIO. Bug: T171848 Change-Id: Ie6bdc0f164e24c35db8a922df57428ec4d5452d3
19 lines
469 B
JavaScript
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() );
|
|
|
|
} );
|
|
|
|
} );
|