Merge "selenium: Toolbar should open notices popup as soon as it loads"

This commit is contained in:
jenkins-bot 2022-11-30 14:18:35 +00:00 committed by Gerrit Code Review
commit 79b64eb837

View file

@ -1,7 +1,6 @@
'use strict';
const assert = require( 'assert' );
const EditPage = require( '../pageobjects/edit.page' );
const LoginPage = require( 'wdio-mediawiki/LoginPage' );
const Util = require( 'wdio-mediawiki/Util' );
describe( 'Toolbar', function () {
@ -10,8 +9,6 @@ describe( 'Toolbar', function () {
beforeEach( async function () {
name = Util.getTestString();
await LoginPage.loginAdmin();
await EditPage.openForEditing( name );
await EditPage.toolbar.waitForDisplayed( { timeout: 20000 } );
} );
@ -23,6 +20,10 @@ describe( 'Toolbar', function () {
await browser.reloadSession();
} );
it( 'should open notices popup as soon as it loads', async function () {
assert( await EditPage.notices.isDisplayed() );
} );
it( 'should open switch editor', async function () {
await EditPage.switchEditorElement.click();