2017-07-28 12:05:35 +00:00
|
|
|
'use strict';
|
|
|
|
|
2020-06-12 22:13:31 +00:00
|
|
|
const assert = require( 'assert' ),
|
2017-07-28 12:05:35 +00:00
|
|
|
EchoPage = require( '../pageobjects/echo.page' ),
|
2024-10-28 16:52:47 +00:00
|
|
|
UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
|
2017-07-28 12:05:35 +00:00
|
|
|
|
2024-06-06 05:07:48 +00:00
|
|
|
describe( 'Echo', () => {
|
|
|
|
it( 'alerts and notices are visible after logging in @daily', async () => {
|
2017-07-28 12:05:35 +00:00
|
|
|
|
2022-01-16 22:42:52 +00:00
|
|
|
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
|
2017-07-28 12:05:35 +00:00
|
|
|
|
|
|
|
assert( EchoPage.alerts.isExisting() );
|
|
|
|
assert( EchoPage.notices.isExisting() );
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
2024-06-06 05:07:48 +00:00
|
|
|
it( 'flyout for alert appears when clicked @daily', async () => {
|
2019-03-01 03:52:37 +00:00
|
|
|
|
2022-01-16 22:42:52 +00:00
|
|
|
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
|
|
|
|
await EchoPage.alerts.click();
|
2020-05-23 20:36:55 +00:00
|
|
|
EchoPage.alertsFlyout.waitForDisplayed();
|
2019-03-01 03:52:37 +00:00
|
|
|
|
2020-05-23 20:36:55 +00:00
|
|
|
assert( EchoPage.alertsFlyout.isExisting() );
|
2019-03-01 03:52:37 +00:00
|
|
|
|
|
|
|
} );
|
|
|
|
|
2024-06-06 05:07:48 +00:00
|
|
|
it( 'flyout for notices appears when clicked @daily', async () => {
|
2019-03-05 19:15:59 +00:00
|
|
|
|
2022-01-16 22:42:52 +00:00
|
|
|
await UserLoginPage.login( browser.config.mwUser, browser.config.mwPwd );
|
|
|
|
await EchoPage.notices.click();
|
2020-05-23 20:36:55 +00:00
|
|
|
EchoPage.noticesFlyout.waitForDisplayed();
|
2019-03-05 19:15:59 +00:00
|
|
|
|
2020-05-23 20:36:55 +00:00
|
|
|
assert( EchoPage.noticesFlyout.isExisting() );
|
2019-03-05 19:15:59 +00:00
|
|
|
|
|
|
|
} );
|
2017-07-28 12:05:35 +00:00
|
|
|
} );
|