mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 19:21:39 +00:00
544b0e70c9
Bug: T219920 Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
32 lines
850 B
JavaScript
32 lines
850 B
JavaScript
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();
|
|
iClickTheEditButton();
|
|
iSeeTheWikitextEditorOverlay();
|
|
} );
|
|
|
|
// @smoke
|
|
it( 'Closing editor (overlay button)', () => {
|
|
iClickTheOverlayCloseButton();
|
|
iDoNotSeeAnOverlay();
|
|
} );
|
|
|
|
it( 'Closing editor (browser button)', () => {
|
|
iClickTheBrowserBackButton();
|
|
iDoNotSeeAnOverlay();
|
|
} );
|
|
|
|
} );
|