mediawiki-skins-MinervaNeue/tests/selenium/specs/page.js
jdlrobson 5e0dd88af0 [Selenium] Skip failing test
Causing error "Node is either not visible or not an HTMLElement"

Change-Id: Id29fe854e04df637dca4d55458b31260b76f2b53
2021-09-16 14:57:03 +00:00

31 lines
764 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.skip( '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 );
} );
} );