mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 03:08:12 +00:00
544b0e70c9
Bug: T219920 Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
31 lines
852 B
JavaScript
31 lines
852 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' );
|
|
iClickASearchWatchstar();
|
|
iShouldSeeAToastNotification();
|
|
} );
|
|
} );
|