mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-04 12:48:44 +00:00
75faab3cf4
'ReadMore is not present on Vector' test works fine in CI but it is failing when targeting the Beta Cluster. Bug: T255053 Change-Id: I80d35829601ade7df9d2cd886df6320a05430e44
35 lines
861 B
JavaScript
35 lines
861 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( 'ReadMore is not present on Vector', function () {
|
|
ReadMorePage.openDesktop( name );
|
|
assert( !ReadMorePage.isCardVisible(), 'No related pages cards are shown' );
|
|
} );
|
|
|
|
it( 'ReadMore is present in Minerva @daily', function () {
|
|
ReadMorePage.openMobile( name );
|
|
assert( ReadMorePage.seeReadMore() );
|
|
} );
|
|
} );
|