mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-22 21:03:03 +00:00
26e69c8e15
Both tests are disabled for more than a year, see
f318d3acd2
.
'ReadMore is not present on Vector' is failing so it is deleted.
'ReadMore is present in Minerva @daily' is passing so it is enabled.
To be sure that the passing test is not flaky, the CI has ran it 100
times, it never failed.
Bug: T280652
Change-Id: I739414c4f3f650ce14e31b6bb2bfdd21efb8ff44
28 lines
668 B
JavaScript
28 lines
668 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( async function () {
|
|
// Create page needed for the tests
|
|
const content = '{{#related:related_articles_2}}';
|
|
await bot.edit( name, content );
|
|
} );
|
|
|
|
it( 'ReadMore is present in Minerva @daily', async function () {
|
|
await ReadMorePage.openMobile( name );
|
|
assert( await ReadMorePage.seeReadMore() );
|
|
} );
|
|
} );
|