mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-18 16:51:05 +00:00
677ce50b24
WebdriverIO has dropped support of sync mode, hence changed to async. Update npm packages: @wdio/*, wdio-mediawiki because async mode needs at least @wdio v7.9. Remove npm packages: @wdio/dot-reporter and @wdio/sync. Bug: T293084 Change-Id: I5babbdadf21e9f951f69de93bfca5213a50965aa
37 lines
1,022 B
JavaScript
37 lines
1,022 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( async () => {
|
|
await iAmLoggedIntoTheMobileWebsite();
|
|
await iAmOnAPageThatDoesNotExist();
|
|
} );
|
|
|
|
// @smoke
|
|
// Skipped on 2022-12-07 because of T313775
|
|
it.skip( 'Closing editor (overlay button)', () => {
|
|
iClickTheEditButton();
|
|
iSeeTheWikitextEditorOverlay();
|
|
iClickTheOverlayCloseButton();
|
|
iDoNotSeeAnOverlay();
|
|
} );
|
|
|
|
it( 'Closing editor (browser button)', async () => {
|
|
await iClickTheEditButton();
|
|
await iSeeTheWikitextEditorOverlay();
|
|
await iClickTheBrowserBackButton();
|
|
await iDoNotSeeAnOverlay();
|
|
} );
|
|
|
|
} );
|