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', () => {
|
|
|
|
|
2023-04-06 22:25:40 +00:00
|
|
|
beforeEach( async () => {
|
|
|
|
await iAmLoggedIntoTheMobileWebsite();
|
|
|
|
await iAmOnAPageThatDoesNotExist();
|
2019-04-08 23:45:11 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
// @smoke
|
2022-12-07 14:47:58 +00:00
|
|
|
// Skipped on 2022-12-07 because of T313775
|
|
|
|
it.skip( 'Closing editor (overlay button)', () => {
|
2022-03-17 21:13:38 +00:00
|
|
|
iClickTheEditButton();
|
|
|
|
iSeeTheWikitextEditorOverlay();
|
2019-04-08 23:45:11 +00:00
|
|
|
iClickTheOverlayCloseButton();
|
|
|
|
iDoNotSeeAnOverlay();
|
|
|
|
} );
|
|
|
|
|
2023-11-27 19:48:05 +00:00
|
|
|
// FIXME T348539
|
|
|
|
it.skip( 'Closing editor (browser button)', async () => {
|
2023-04-06 22:25:40 +00:00
|
|
|
await iClickTheEditButton();
|
|
|
|
await iSeeTheWikitextEditorOverlay();
|
|
|
|
await iClickTheBrowserBackButton();
|
|
|
|
await iDoNotSeeAnOverlay();
|
2019-04-08 23:45:11 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
} );
|