mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 18:26:16 +00:00
fbd373b5d7
Bug: T269051 Change-Id: I5680d98d9d3be8238c427f1baf0b1ac78658cbb7
51 lines
1.6 KiB
JavaScript
51 lines
1.6 KiB
JavaScript
'use strict';
|
|
|
|
const {
|
|
pageExists, iAmOnAPageThatDoesNotExist,
|
|
iAmLoggedIntoTheMobileWebsite
|
|
} = require( './../features/step_definitions/common_steps' ),
|
|
{
|
|
iClickTheEditButton, iSeeTheWikitextEditorOverlay, iClearTheEditor,
|
|
iDoNotSeeTheWikitextEditorOverlay,
|
|
iTypeIntoTheEditor, iClickContinue, iClickSubmit, iSayOkayInTheConfirmDialog,
|
|
theTextOfTheFirstHeadingShouldBe, thereShouldBeARedLinkWithText
|
|
} = 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
|
|
it.skip( 'Redirects', () => {
|
|
const title = 'Selenium wikitext editor test ' + Math.random();
|
|
pageExists( title );
|
|
iAmOnAPageThatDoesNotExist();
|
|
iClickTheEditButton();
|
|
iSeeTheWikitextEditorOverlay();
|
|
iClearTheEditor();
|
|
iTypeIntoTheEditor( `#REDIRECT [[${title}]]` );
|
|
iClickContinue();
|
|
iClickSubmit();
|
|
iSayOkayInTheConfirmDialog();
|
|
iDoNotSeeTheWikitextEditorOverlay();
|
|
theTextOfTheFirstHeadingShouldBe( title );
|
|
} );
|
|
|
|
// @editing @en.m.wikipedia.beta.wmflabs.org
|
|
it( 'Broken redirects', () => {
|
|
iAmOnAPageThatDoesNotExist();
|
|
iClickTheEditButton();
|
|
iSeeTheWikitextEditorOverlay();
|
|
iClearTheEditor();
|
|
iTypeIntoTheEditor( '#REDIRECT [[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]]' );
|
|
iClickContinue();
|
|
iClickSubmit();
|
|
iSayOkayInTheConfirmDialog();
|
|
iDoNotSeeTheWikitextEditorOverlay();
|
|
thereShouldBeARedLinkWithText( 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' );
|
|
} );
|
|
} );
|