mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
2ec4b950e2
Change-Id: I0185de7ec62c54ee733de94622e0c41a65e86731
35 lines
886 B
JavaScript
35 lines
886 B
JavaScript
'use strict';
|
|
|
|
const { ArticlePage } = require( './../support/world' );
|
|
|
|
const iClickOnTheMask = () => {
|
|
ArticlePage.drawer_mask_element.waitForDisplayed();
|
|
ArticlePage.drawer_mask_element.click();
|
|
};
|
|
|
|
const iShouldSeeNotTheReferenceDrawer = () => {
|
|
browser.waitUntil( () => !ArticlePage.drawer_element.isDisplayed() );
|
|
};
|
|
|
|
const iClickOnAReference = () => {
|
|
ArticlePage.reference_element.click();
|
|
};
|
|
|
|
const iClickOnANestedReference = () => {
|
|
ArticlePage.drawer_reference_element.waitForDisplayed();
|
|
ArticlePage.drawer_reference_element.click();
|
|
};
|
|
|
|
const iShouldSeeDrawerWithText = ( text ) => {
|
|
ArticlePage.drawer_element.waitForDisplayed();
|
|
browser.waitUntil( () => ArticlePage.drawer_element.getText().includes( text ) );
|
|
};
|
|
|
|
module.exports = {
|
|
iClickOnAReference,
|
|
iClickOnTheMask,
|
|
iShouldSeeNotTheReferenceDrawer,
|
|
iClickOnANestedReference,
|
|
iShouldSeeDrawerWithText
|
|
};
|