mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
428047087a
Ruby is not supported. The test often flakes. Change-Id: I883cf283ea5307cdc0daebf41f20928d1adb309a
33 lines
853 B
JavaScript
33 lines
853 B
JavaScript
const { ArticlePage } = require( './../support/world' );
|
|
|
|
const iClickOnTheMask = () => {
|
|
ArticlePage.mask_element.waitForVisible();
|
|
ArticlePage.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
|
|
};
|