mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
636ffbbb98
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
20 lines
531 B
JavaScript
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() );
|
|
} );
|
|
|
|
} );
|