mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
32 lines
678 B
JavaScript
32 lines
678 B
JavaScript
|
const assert = require( 'assert' ),
|
||
|
{ ArticlePage, UserLoginPage } = require( '../support/world' );
|
||
|
|
||
|
const iAmUsingTheMobileSite = () => {
|
||
|
ArticlePage.setMobileMode();
|
||
|
};
|
||
|
|
||
|
const iAmInBetaMode = () => {
|
||
|
ArticlePage.setBetaMode();
|
||
|
};
|
||
|
|
||
|
const iAmOnPage = ( article ) => {
|
||
|
ArticlePage.open( article );
|
||
|
};
|
||
|
|
||
|
const iAmLoggedIn = () => {
|
||
|
UserLoginPage.open();
|
||
|
UserLoginPage.loginAdmin();
|
||
|
assert.strictEqual( ArticlePage.is_authenticated_element.isExisting(), true );
|
||
|
};
|
||
|
|
||
|
const iAmLoggedIntoTheMobileWebsite = () => {
|
||
|
iAmUsingTheMobileSite();
|
||
|
iAmLoggedIn();
|
||
|
};
|
||
|
|
||
|
module.exports = {
|
||
|
iAmLoggedIntoTheMobileWebsite,
|
||
|
iAmUsingTheMobileSite,
|
||
|
iAmLoggedIn, iAmOnPage, iAmInBetaMode
|
||
|
};
|