2020-06-02 21:21:44 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-07-01 22:31:17 +00:00
|
|
|
const {
|
2022-02-16 13:24:57 +00:00
|
|
|
iAmOnAPageThatDoesNotExist,
|
2019-04-05 21:09:47 +00:00
|
|
|
iAmLoggedIntoTheMobileWebsite
|
|
|
|
} = require( './../features/step_definitions/common_steps' ),
|
|
|
|
{
|
|
|
|
iClickTheEditButton, iSeeTheWikitextEditorOverlay, iClearTheEditor,
|
|
|
|
iDoNotSeeTheWikitextEditorOverlay,
|
|
|
|
iTypeIntoTheEditor, iClickContinue, iClickSubmit, iSayOkayInTheConfirmDialog,
|
2022-02-16 13:24:57 +00:00
|
|
|
thereShouldBeARedLinkWithText
|
2019-04-05 21:09:47 +00:00
|
|
|
} = require( './../features/step_definitions/editor_steps' );
|
|
|
|
|
|
|
|
// @test2.m.wikipedia.org @login
|
|
|
|
describe( 'Wikitext Editor (Makes actual saves)', () => {
|
|
|
|
|
|
|
|
beforeEach( () => {
|
|
|
|
iAmLoggedIntoTheMobileWebsite();
|
|
|
|
} );
|
|
|
|
|
|
|
|
// @editing @en.m.wikipedia.beta.wmflabs.org
|
2021-07-01 14:42:58 +00:00
|
|
|
it.skip( 'Broken redirects', () => {
|
2019-04-05 21:09:47 +00:00
|
|
|
iAmOnAPageThatDoesNotExist();
|
|
|
|
iClickTheEditButton();
|
|
|
|
iSeeTheWikitextEditorOverlay();
|
|
|
|
iClearTheEditor();
|
|
|
|
iTypeIntoTheEditor( '#REDIRECT [[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]]' );
|
|
|
|
iClickContinue();
|
|
|
|
iClickSubmit();
|
|
|
|
iSayOkayInTheConfirmDialog();
|
|
|
|
iDoNotSeeTheWikitextEditorOverlay();
|
|
|
|
thereShouldBeARedLinkWithText( 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' );
|
|
|
|
} );
|
|
|
|
} );
|