mediawiki-extensions-Echo/tests/selenium/specs/echo.js
Željko Filipin 6aa871293e Use new page objects from mediawiki/core in Selenium tests
Bug: T171848
Change-Id: Ib6a08c6a34ef6a4bef8a81f49fed8aae67dc67dc
2018-06-22 15:23:23 +00:00

19 lines
437 B
JavaScript

'use strict';
var assert = require( 'assert' ),
EchoPage = require( '../pageobjects/echo.page' ),
UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
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() );
} );
} );