mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
40c5c4fe9e
WebdriverIO has dropped support of sync mode, hence changed to async. Update npm packages: @wdio/*, wdio-mediawiki and webdriverio because async mode needs at least webdriverio v7.9. Remove npm package: @wdio/sync. Bug: T299756 Change-Id: I4a09ccddd8049f84232b035b664b42a4e98d7ff0
21 lines
538 B
JavaScript
21 lines
538 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.notices.waitForDisplayed();
|
|
assert( await EditPage.notices.isDisplayed() );
|
|
|
|
} );
|
|
|
|
} );
|