mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "selenium: Toolbar should open notices popup as soon as it loads"
This commit is contained in:
commit
79b64eb837
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue