mediawiki-extensions-Echo/tests/selenium/specs/echo.js
Željko Filipin 6db6e95252 selenium: Delete tests disabled more than two years ago
Bug: T280652
Change-Id: I9bdff690e3a8dc0d04c093dad7603cfdd3737a50
2024-10-28 17:52:47 +01:00

37 lines
998 B
JavaScript

'use strict';
const assert = require( 'assert' ),
EchoPage = require( '../pageobjects/echo.page' ),
UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
describe( 'Echo', () => {
it( 'alerts and notices are visible after logging in @daily', async () => {
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
assert( EchoPage.alerts.isExisting() );
assert( EchoPage.notices.isExisting() );
} );
it( 'flyout for alert appears when clicked @daily', async () => {
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
await EchoPage.alerts.click();
EchoPage.alertsFlyout.waitForDisplayed();
assert( EchoPage.alertsFlyout.isExisting() );
} );
it( 'flyout for notices appears when clicked @daily', async () => {
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
await EchoPage.notices.click();
EchoPage.noticesFlyout.waitForDisplayed();
assert( EchoPage.noticesFlyout.isExisting() );
} );
} );