mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
86caa17713
* Update stylelint-config-wikimedia to 0.13.0 * Ensure eslintrc.js and root files are linted with server config Change-Id: I59c49fedd5b0c4c5620f960b78e4f781a6bc5abb
35 lines
1,023 B
JavaScript
35 lines
1,023 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
pageExists, iShouldSeeAToastNotification,
|
|
iAmUsingMobileScreenResolution,
|
|
iAmUsingTheMobileSite,
|
|
iAmLoggedIntoTheMobileWebsite,
|
|
iAmOnPage
|
|
} = require( '../features/step_definitions/common_steps' ),
|
|
{
|
|
iClickTheSearchIcon,
|
|
iTypeIntoTheSearchBox,
|
|
iClickASearchWatchstar,
|
|
iSeeTheSearchOverlay
|
|
} = require( '../features/step_definitions/search_steps' );
|
|
|
|
// @test2.m.wikipedia.org @vagrant @login
|
|
describe( 'Search', () => {
|
|
it( 'Clicking on a watchstar toggles the watchstar', () => {
|
|
iAmUsingTheMobileSite();
|
|
pageExists( 'Selenium search test' );
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
iAmOnPage( 'Main Page' );
|
|
iAmUsingMobileScreenResolution();
|
|
iClickTheSearchIcon();
|
|
iSeeTheSearchOverlay();
|
|
iTypeIntoTheSearchBox( 'Selenium search tes' );
|
|
// This pause statement is a temporary bandaid until we figure a bettery dynamic sync
|
|
// eslint-disable-next-line wdio/no-pause
|
|
browser.pause( 1000 );
|
|
iClickASearchWatchstar();
|
|
iShouldSeeAToastNotification();
|
|
} );
|
|
} );
|