mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
b12fe5d5cc
Fixed the search_loggedin.js test by updating watched watchstar methods. Bug: T174018 Change-Id: I521279d97bc0b264062296cf318f4f56cebee2aa
32 lines
964 B
JavaScript
32 lines
964 B
JavaScript
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();
|
|
} );
|
|
} );
|