mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-11 13:56:10 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
const {
|
|
iAmLoggedIntoTheMobileWebsite,
|
|
iAmOnPage
|
|
} = require( '../features/step_definitions/common_steps' ),
|
|
{ iSeeALinkToAboutPage, iShouldSeeAUserPageLinkInMenu,
|
|
iShouldSeeLogoutLinkInMenu,
|
|
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();
|
|
[ 'Home', 'Random', 'Settings', 'Contributions',
|
|
'Watchlist' ].forEach( ( label ) => {
|
|
iShouldSeeALinkInMenu( label );
|
|
} );
|
|
iShouldSeeLogoutLinkInMenu();
|
|
try {
|
|
iShouldSeeALinkInMenu( 'Nearby' );
|
|
} catch ( e ) {
|
|
console.warn( 'Nearby item will only appear in main menu if $wgMFNearby is configured' );
|
|
}
|
|
} );
|
|
} );
|