mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-25 14:47:08 +00:00
69a100cb45
"Page should be creatable" test is fixed by increasing timeout. "Wikitext Editor Makes actual saves Broken redirects" is skipped. The skipped test will be replaced with a new test. Bug: T269051 Change-Id: I72c43b361bd8e63e500656f164412d37856805c1
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.skip( 'Broken redirects', () => {
|
|
iAmOnAPageThatDoesNotExist();
|
|
iClickTheEditButton();
|
|
iSeeTheWikitextEditorOverlay();
|
|
iClearTheEditor();
|
|
iTypeIntoTheEditor( '#REDIRECT [[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]]' );
|
|
iClickContinue();
|
|
iClickSubmit();
|
|
iSayOkayInTheConfirmDialog();
|
|
iDoNotSeeTheWikitextEditorOverlay();
|
|
thereShouldBeARedLinkWithText( 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' );
|
|
} );
|
|
} );
|