mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-18 19:10:54 +00:00
fddb47b128
Change-Id: I6f9731d42bceb5ff4e2c9733a567c72e359abcbd
28 lines
650 B
JavaScript
28 lines
650 B
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' ),
|
|
Api = require( 'wdio-mediawiki/Api' ),
|
|
ReadMorePage = require( '../pageobjects/readmore.page' );
|
|
|
|
describe( 'ReadMore', () => {
|
|
let bot;
|
|
|
|
before( async () => {
|
|
bot = await Api.bot();
|
|
} );
|
|
|
|
const name = 'Related Articles 1';
|
|
|
|
// eslint-disable-next-line mocha/no-sibling-hooks
|
|
before( async () => {
|
|
// 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 () => {
|
|
await ReadMorePage.openMobile( name );
|
|
assert( await ReadMorePage.seeReadMore() );
|
|
} );
|
|
} );
|