mediawiki-extensions-Relate.../tests/selenium/specs/readmore.js
Željko Filipin 26e69c8e15 selenium: Enable one skipped test, delete one failing test
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
2022-11-24 12:40:45 +00:00

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() );
} );
} );