mediawiki-extensions-Visual.../tests/selenium/specs/content_editable.js
Željko Filipin 636ffbbb98 selenium: Check if editing toolbar is displayed
A better assertion if the VisualEditor is opened would be to check for
editing toolbar instead of checking for a notices popup.

Bug: T296187
Change-Id: Ide816646254bc856b44725490c25b2b9962188c9
2022-03-21 15:54:47 +01:00

20 lines
531 B
JavaScript

'use strict';
const assert = require( 'assert' );
const EditPage = require( '../pageobjects/edit.page' );
const Util = require( 'wdio-mediawiki/Util' );
const LoginPage = require( 'wdio-mediawiki/LoginPage' );
describe( 'Content Editable', function () {
it( 'should load when an url is opened', async function () {
await LoginPage.loginAdmin();
const name = Util.getTestString();
await EditPage.openForEditing( name );
await EditPage.activationComplete();
assert( await EditPage.toolbar.isDisplayed() );
} );
} );