mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 02:06:43 +00:00
69a100cb45
"Page should be creatable" test is fixed by increasing timeout. "Wikitext Editor Makes actual saves Broken redirects" is skipped. The skipped test will be replaced with a new test. Bug: T269051 Change-Id: I72c43b361bd8e63e500656f164412d37856805c1
31 lines
759 B
JavaScript
31 lines
759 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' );
|
|
const EditPage = require( '../pageobjects/edit.page' );
|
|
const UserLoginPage = require( 'wdio-mediawiki/LoginPage' );
|
|
const Util = require( 'wdio-mediawiki/Util' );
|
|
|
|
describe( 'Page', function () {
|
|
let content, name;
|
|
|
|
beforeEach( function () {
|
|
content = Util.getTestString( 'BeforeEach-content-' );
|
|
name = Util.getTestString( 'BeforeEach-name-' );
|
|
} );
|
|
|
|
it( 'should be creatable', function () {
|
|
UserLoginPage.loginAdmin();
|
|
|
|
EditPage.edit( name, content );
|
|
|
|
browser.waitUntil(
|
|
() => EditPage.heading.getText() === name,
|
|
{
|
|
timeout: 10000
|
|
}
|
|
);
|
|
assert.strictEqual( EditPage.heading.getText(), name );
|
|
assert.strictEqual( EditPage.displayedContent.getText(), content );
|
|
} );
|
|
} );
|