mediawiki-skins-MinervaNeue/tests/selenium/specs/editor_wikitext_nosave.js
jdlrobson 544b0e70c9 Port remaining @login tests to Node.js
Bug: T219920
Change-Id: I9f651d73cae8d6494ffa585ac3cbd791686b926a
2019-04-11 21:17:45 +00:00

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();
} );
} );