mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 18:29:50 +00:00
544b0e70c9
Bug: T219920 Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
30 lines
909 B
JavaScript
30 lines
909 B
JavaScript
const assert = require( 'assert' );
|
|
const { ArticlePage } = require( '../support/world.js' );
|
|
|
|
const iSeeALinkToAboutPage = () => {
|
|
assert.strictEqual( ArticlePage.menu_element.element( '*=About' ).isVisible(), true );
|
|
};
|
|
|
|
const iClickOnTheMainNavigationButton = () => {
|
|
ArticlePage.menu_button_element.click();
|
|
};
|
|
|
|
const iShouldSeeAUserPageLinkInMenu = () => {
|
|
ArticlePage.menu_element.element( '.mw-ui-icon-minerva-profile' );
|
|
};
|
|
|
|
const iShouldSeeALinkInMenu = ( text ) => {
|
|
assert.strictEqual( ArticlePage.menu_element.element( `=${text}` ).isVisible(),
|
|
true, `Link to ${text} is visible.` );
|
|
};
|
|
|
|
const iShouldSeeALinkToDisclaimer = () => {
|
|
assert.strictEqual( ArticlePage.menu_element.element( '=Disclaimers' ).isVisible(), true );
|
|
};
|
|
|
|
module.exports = {
|
|
iClickOnTheMainNavigationButton,
|
|
iSeeALinkToAboutPage, iShouldSeeAUserPageLinkInMenu,
|
|
iShouldSeeALinkInMenu, iShouldSeeALinkToDisclaimer
|
|
};
|