mediawiki-skins-MinervaNeue/tests/selenium/specs/editor_wikitext_nosave.js
Jon Robson c4f7c60f9f [Tests] Move beforeEach calls into tests
beforeEach failures do not have videos associated. We'd like to see
what's going wrong with these tests.

Change-Id: I1b723bcd7d00f15907647d5c7a4aa1f57578468c
2022-03-17 14:14:10 -07:00

36 lines
924 B
JavaScript

'use strict';
const {
iAmOnAPageThatDoesNotExist, iClickTheBrowserBackButton,
iClickTheOverlayCloseButton, iDoNotSeeAnOverlay,
iAmLoggedIntoTheMobileWebsite
} = require( '../features/step_definitions/common_steps' ),
{
iClickTheEditButton, iSeeTheWikitextEditorOverlay
} = require( '../features/step_definitions/editor_steps' );
// @chrome @en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @vagrant @login
describe( 'Wikitext Editor', () => {
beforeEach( () => {
iAmLoggedIntoTheMobileWebsite();
iAmOnAPageThatDoesNotExist();
} );
// @smoke
it( 'Closing editor (overlay button)', () => {
iClickTheEditButton();
iSeeTheWikitextEditorOverlay();
iClickTheOverlayCloseButton();
iDoNotSeeAnOverlay();
} );
it( 'Closing editor (browser button)', () => {
iClickTheEditButton();
iSeeTheWikitextEditorOverlay();
iClickTheBrowserBackButton();
iDoNotSeeAnOverlay();
} );
} );