mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
238010dbea
Bug: T269051 Change-Id: I958d1f5035f7d28c70ff19c3db6f3707defa880f
29 lines
748 B
JavaScript
29 lines
748 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' );
|
|
const BlankPage = require( '../pageobjects/blank.page' );
|
|
const EditPage = require( '../pageobjects/edit.page' );
|
|
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 () {
|
|
BlankPage.open();
|
|
BlankPage.mobileView.click();
|
|
|
|
EditPage.edit( name, content );
|
|
|
|
browser.waitUntil(
|
|
() => EditPage.heading.getText() === name
|
|
);
|
|
assert.strictEqual( EditPage.heading.getText(), name );
|
|
assert.strictEqual( EditPage.displayedContent.getText(), content );
|
|
} );
|
|
} );
|