2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-08 23:45:11 +00:00
|
|
|
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
|
2019-10-16 21:01:59 +00:00
|
|
|
describe( 'Search', () => {
|
2023-07-27 16:45:57 +00:00
|
|
|
// FIXME: T334634
|
|
|
|
it.skip( 'Clicking on a watchstar toggles the watchstar', async () => {
|
2023-04-06 22:25:40 +00:00
|
|
|
await iAmUsingTheMobileSite();
|
|
|
|
await pageExists( 'Selenium search test' );
|
|
|
|
await iAmLoggedIntoTheMobileWebsite();
|
|
|
|
await iAmOnPage( 'Main Page' );
|
|
|
|
await iAmUsingMobileScreenResolution();
|
|
|
|
await iClickTheSearchIcon();
|
|
|
|
await iSeeTheSearchOverlay();
|
|
|
|
await iTypeIntoTheSearchBox( 'Selenium search tes' );
|
2019-10-16 21:01:59 +00:00
|
|
|
// This pause statement is a temporary bandaid until we figure a bettery dynamic sync
|
2022-05-07 00:57:25 +00:00
|
|
|
// eslint-disable-next-line wdio/no-pause
|
2023-04-06 22:25:40 +00:00
|
|
|
await browser.pause( 1000 );
|
|
|
|
await iClickASearchWatchstar();
|
|
|
|
await iShouldSeeAToastNotification();
|
2019-04-08 23:45:11 +00:00
|
|
|
} );
|
|
|
|
} );
|