mediawiki-extensions-Visual.../tests/selenium/specs/content_editable.js
Željko Filipin 09668285d6 selenium: Wait for VisualEditor to load
Bug: T296187
Change-Id: Iac98690dd49b6e82062973da05ce30c6f08ba8bc
2022-02-16 14:57:13 +01:00

21 lines
532 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.notices.isDisplayed() );
} );
} );