mediawiki-skins-MinervaNeue/tests/selenium/specs/search_loggedin.js
Ed Sanders 86caa17713 build: Update linters and linter config
* Update stylelint-config-wikimedia to 0.13.0
* Ensure eslintrc.js and root files are linted
  with server config

Change-Id: I59c49fedd5b0c4c5620f960b78e4f781a6bc5abb
2022-05-18 14:33:23 +01:00

35 lines
1,023 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
// eslint-disable-next-line wdio/no-pause
browser.pause( 1000 );
iClickASearchWatchstar();
iShouldSeeAToastNotification();
} );
} );