Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752882
mainmenu_loggedin.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
mainmenu_loggedin.js
View Options
'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
(
async
()
=>
{
await
iAmLoggedIntoTheMobileWebsite
();
await
iAmOnPage
(
'Main Page'
);
}
);
it
(
'Check links in menu'
,
async
()
=>
{
await
iClickOnTheMainNavigationButton
();
await
iShouldSeeALinkToDisclaimer
();
await
iShouldSeeAUserPageLinkInMenu
();
await
iSeeALinkToAboutPage
();
[
'Home'
,
'Random'
,
'Settings'
,
'Watchlist'
].
forEach
(
async
(
label
)
=>
{
await
iShouldSeeALinkInMenu
(
label
);
}
);
await
iShouldSeeLogoutLinkInMenu
();
try
{
await
iShouldSeeALinkInMenu
(
'Nearby'
);
}
catch
(
e
)
{
console
.
warn
(
'Nearby item will only appear in main menu if $wgMFNearby is configured'
);
}
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 20:30 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
76/9f/0ad7d75a2590e3e29c14bcc7bf61
Default Alt Text
mainmenu_loggedin.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment