mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-30 19:14:49 +00:00
dfb3995a90
composer: * mediawiki/mediawiki-codesniffer: 28.0.0 → 29.0.0 The following sniffs are failing and were disabled: * MediaWiki.Commenting.FunctionComment.MissingParamTag npm: * eslint-config-wikimedia: 0.11.0 → 0.15.0 The following rules are failing and were disabled: * no-jquery/no-parse-html-literal * grunt-eslint: 21.0.0 → 22.0.0 * grunt-stylelint: 0.10.1 → 0.13.0 * stylelint-config-wikimedia: 0.6.0 → 0.8.0 Additional changes: * Also sorted "composer fix" command to run phpcbf last. * Removing manual reportUnusedDisableDirectives for eslint. Change-Id: Iab538420d73bbbebfd05cf815ab06773f16da8da
29 lines
736 B
JavaScript
29 lines
736 B
JavaScript
'use strict';
|
|
|
|
var assert = require( 'assert' ),
|
|
Api = require( 'wdio-mediawiki/Api' ),
|
|
ReadMorePage = require( '../pageobjects/readmore.page' );
|
|
|
|
describe( 'ReadMore', function () {
|
|
|
|
const name = 'Related Articles 1';
|
|
|
|
before( function () {
|
|
// Create page needed for the tests
|
|
browser.call( function () {
|
|
const content = '{{#related:related_articles_2}}';
|
|
return Api.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', function () {
|
|
ReadMorePage.openMobile( name );
|
|
assert( ReadMorePage.seeReadMore() );
|
|
} );
|
|
} );
|