mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 09:16:34 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
34 lines
979 B
JavaScript
34 lines
979 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
|
|
browser.pause( 1000 );
|
|
iClickASearchWatchstar();
|
|
iShouldSeeAToastNotification();
|
|
} );
|
|
} );
|