mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 11:35:54 +00:00
c8ce9608c0
Bug: T255447 Change-Id: I4cdde3070a6dc4e742ea37a78a17dfd556103dd6
35 lines
890 B
JavaScript
35 lines
890 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().indexOf( text ) > -1 );
|
|
};
|
|
|
|
module.exports = {
|
|
iClickOnAReference,
|
|
iClickOnTheMask,
|
|
iShouldSeeNotTheReferenceDrawer,
|
|
iClickOnANestedReference,
|
|
iShouldSeeDrawerWithText
|
|
};
|