mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
c8ce9608c0
Bug: T255447 Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const assert = require( 'assert' );
|
|
const { ArticlePage } = require( '../support/world.js' );
|
|
|
|
const iSeeALinkToAboutPage = () => {
|
|
assert.strictEqual( ArticlePage.menu_element.$( '*=About' ).isDisplayed(), true );
|
|
};
|
|
|
|
const iClickOnTheMainNavigationButton = () => {
|
|
ArticlePage.menu_button_element.click();
|
|
};
|
|
|
|
const iShouldSeeAUserPageLinkInMenu = () => {
|
|
ArticlePage.menu_element.$( '.primary-action' );
|
|
};
|
|
|
|
const iShouldSeeLogoutLinkInMenu = () => {
|
|
ArticlePage.menu_element.$( '.secondary-action' );
|
|
};
|
|
|
|
const iShouldSeeALinkInMenu = ( text ) => {
|
|
assert.strictEqual( ArticlePage.menu_element.$( `span=${text}` ).isDisplayed(),
|
|
true, `Link to ${text} is visible.` );
|
|
};
|
|
|
|
const iShouldSeeALinkToDisclaimer = () => {
|
|
ArticlePage.menu_element.$( '=Disclaimers' ).waitForDisplayed();
|
|
assert.strictEqual( ArticlePage.menu_element.$( '=Disclaimers' ).isDisplayed(), true );
|
|
};
|
|
|
|
module.exports = {
|
|
iClickOnTheMainNavigationButton,
|
|
iSeeALinkToAboutPage, iShouldSeeAUserPageLinkInMenu,
|
|
iShouldSeeLogoutLinkInMenu,
|
|
iShouldSeeALinkInMenu, iShouldSeeALinkToDisclaimer
|
|
};
|