mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
35 lines
882 B
JavaScript
35 lines
882 B
JavaScript
'use strict';
|
|
|
|
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
|
|
};
|