2017-03-28 13:59:35 +00:00
|
|
|
'use strict';
|
|
|
|
const assert = require( 'assert' );
|
|
|
|
const EditPage = require( '../pageobjects/edit.page' );
|
|
|
|
const Util = require( 'wdio-mediawiki/Util' );
|
|
|
|
const LoginPage = require( 'wdio-mediawiki/LoginPage' );
|
|
|
|
|
2022-01-17 15:49:25 +00:00
|
|
|
describe( 'Content Editable', function () {
|
2017-03-28 13:59:35 +00:00
|
|
|
|
2022-01-25 14:52:11 +00:00
|
|
|
it( 'should load when an url is opened', async function () {
|
|
|
|
await LoginPage.loginAdmin();
|
2017-03-28 13:59:35 +00:00
|
|
|
const name = Util.getTestString();
|
|
|
|
|
2022-01-25 14:52:11 +00:00
|
|
|
await EditPage.openForEditing( name );
|
2017-03-28 13:59:35 +00:00
|
|
|
|
2022-02-07 15:53:17 +00:00
|
|
|
await EditPage.activationComplete();
|
2022-01-25 14:52:11 +00:00
|
|
|
assert( await EditPage.notices.isDisplayed() );
|
2017-03-28 13:59:35 +00:00
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
} );
|