mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-12-11 16:16:13 +00:00
a40cfcb134
Additional changes: * Remove all Ruby artifacts * Update eslint to allow es6 in tests Bug: T164024 Change-Id: If6c8d32df042b831d52440963606a47c8ce7b552
29 lines
778 B
JavaScript
29 lines
778 B
JavaScript
'use strict';
|
|
|
|
var assert = require( 'assert' ),
|
|
EditPage = require( '../../../../../tests/selenium/pageobjects/edit.page' ),
|
|
ReadMorePage = require( '../pageobjects/readmore.page' );
|
|
|
|
describe( 'ReadMore', function () {
|
|
|
|
let name = 'Related Articles 1';
|
|
|
|
before( function () {
|
|
// Create page needed for the tests
|
|
browser.call( function () {
|
|
let content = '{{#related:related_articles_2}}';
|
|
return EditPage.apiEdit( 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() );
|
|
} );
|
|
} );
|