mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-12 08:35:12 +00:00
f318d3acd2
Discussed with Edward, and there seems to be some problems with these Selenium tests that are being surfaced in Ie7cfa3e2b19d22086bfa1ba9c64e17760eb29ad2. Skipping on the short term. Change-Id: Id9dc0b3bf6a619bec73e0e18915c184fe20936d5
35 lines
871 B
JavaScript
35 lines
871 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' ),
|
|
Api = require( 'wdio-mediawiki/Api' ),
|
|
ReadMorePage = require( '../pageobjects/readmore.page' );
|
|
|
|
describe( 'ReadMore', function () {
|
|
let bot;
|
|
|
|
before( async () => {
|
|
bot = await Api.bot();
|
|
} );
|
|
|
|
const name = 'Related Articles 1';
|
|
|
|
// eslint-disable-next-line mocha/no-sibling-hooks
|
|
before( function () {
|
|
// Create page needed for the tests
|
|
browser.call( async () => {
|
|
const content = '{{#related:related_articles_2}}';
|
|
await bot.edit( name, content );
|
|
} );
|
|
} );
|
|
|
|
it.skip( 'ReadMore is not present on Vector', function () {
|
|
ReadMorePage.openDesktop( name );
|
|
assert( !ReadMorePage.isCardVisible(), 'No related pages cards are shown' );
|
|
} );
|
|
|
|
it.skip( 'ReadMore is present in Minerva @daily', function () {
|
|
ReadMorePage.openMobile( name );
|
|
assert( ReadMorePage.seeReadMore() );
|
|
} );
|
|
} );
|