mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
46f28730e1
This class is used for the main menu exclusively. Applying it will reveal 2 transparent shields on top of each other when is not desired Bug: T214049 Change-Id: I8ddcc7082c3c602a78084157c2d613366a8016c7
33 lines
867 B
JavaScript
33 lines
867 B
JavaScript
const { ArticlePage } = require( './../support/world' );
|
|
|
|
const iClickOnTheMask = () => {
|
|
ArticlePage.drawer_mask_element.waitForVisible();
|
|
ArticlePage.drawer_mask_element.click();
|
|
};
|
|
|
|
const iShouldSeeNotTheReferenceDrawer = () => {
|
|
browser.waitUntil( () => !ArticlePage.drawer_element.isVisible() );
|
|
};
|
|
|
|
const iClickOnAReference = () => {
|
|
ArticlePage.reference_element.click();
|
|
};
|
|
|
|
const iClickOnANestedReference = () => {
|
|
ArticlePage.drawer_reference_element.waitForVisible();
|
|
ArticlePage.drawer_reference_element.click();
|
|
};
|
|
|
|
const iShouldSeeDrawerWithText = ( text ) => {
|
|
ArticlePage.drawer_element.waitForVisible();
|
|
browser.waitUntil( () => ArticlePage.drawer_element.getText().indexOf( text ) > -1 );
|
|
};
|
|
|
|
module.exports = {
|
|
iClickOnAReference,
|
|
iClickOnTheMask,
|
|
iShouldSeeNotTheReferenceDrawer,
|
|
iClickOnANestedReference,
|
|
iShouldSeeDrawerWithText
|
|
};
|