mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
20bb2bf09c
Bug: T282058 Change-Id: I342a1ba510ea5da85da904c1bec4f26adfc60d33
28 lines
729 B
JavaScript
28 lines
729 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
|
|
);
|
|
assert.strictEqual( EditPage.heading.getText(), name );
|
|
assert.strictEqual( EditPage.displayedContent.getText(), content );
|
|
} );
|
|
} );
|