2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-08 23:45:11 +00:00
|
|
|
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)', () => {
|
2022-03-17 21:13:38 +00:00
|
|
|
iClickTheEditButton();
|
|
|
|
iSeeTheWikitextEditorOverlay();
|
2019-04-08 23:45:11 +00:00
|
|
|
iClickTheOverlayCloseButton();
|
|
|
|
iDoNotSeeAnOverlay();
|
|
|
|
} );
|
|
|
|
|
|
|
|
it( 'Closing editor (browser button)', () => {
|
2022-03-17 21:13:38 +00:00
|
|
|
iClickTheEditButton();
|
|
|
|
iSeeTheWikitextEditorOverlay();
|
2019-04-08 23:45:11 +00:00
|
|
|
iClickTheBrowserBackButton();
|
|
|
|
iDoNotSeeAnOverlay();
|
|
|
|
} );
|
|
|
|
|
|
|
|
} );
|