MinervaNeue/tests/selenium/specs/search_loggedin.js
jdlrobson d455b88080 Skip the flaking watchstar test
Additional changes to tests:
* pageExists uses brower.call to avoid token error in talk
* use a before rather than beforeEach for creating articles
to avoid an unnecessary API action

Bug: T222517
Change-Id: I44cda7d62e5e4e58ed38b15ae13fdb0c8dc2e900
2019-05-08 13:50:47 -07:00

31 lines
857 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.skip( '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();
} );
} );