mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 01:06:31 +00:00
544b0e70c9
Bug: T219920 Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
const {
|
|
iAmLoggedIntoTheMobileWebsite,
|
|
iAmOnPage
|
|
} = require( '../features/step_definitions/common_steps' ),
|
|
{ iSeeALinkToAboutPage, iShouldSeeAUserPageLinkInMenu,
|
|
iClickOnTheMainNavigationButton,
|
|
iShouldSeeALinkInMenu, iShouldSeeALinkToDisclaimer
|
|
} = require( '../features/step_definitions/menu_steps' );
|
|
|
|
// @chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant @login
|
|
describe( 'Menus open correct page for anonymous users', () => {
|
|
|
|
beforeEach( () => {
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnPage( 'Main Page' );
|
|
} );
|
|
|
|
it( 'Check links in menu', () => {
|
|
iClickOnTheMainNavigationButton();
|
|
iShouldSeeALinkToDisclaimer();
|
|
iShouldSeeAUserPageLinkInMenu();
|
|
iSeeALinkToAboutPage();
|
|
[ 'Log out', 'Home', 'Random', 'Settings', 'Contributions',
|
|
'Watchlist' ].forEach( ( label ) => {
|
|
iShouldSeeALinkInMenu( label );
|
|
} );
|
|
try {
|
|
iShouldSeeALinkInMenu( 'Nearby' );
|
|
} catch ( e ) {
|
|
// eslint-disable-next-line no-console
|
|
console.warn( 'Nearby item will only appear in main menu if $wgMFNearby is configured' );
|
|
}
|
|
} );
|
|
} );
|