mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
a9533fc463
Two tests are failing. These are false positives that obscure real failures. Both are removed for the following reason. 1) Editor test is covered by the redirect tests - failing due to concurrent edits (possibly because multiple browser tests act on the same page at the same time). However, editing is already covered by the other 2 cases. 2) Remove unwatch test - this is failing as there is a problem in the setup - the page starts unwatched when it should be watched. The test for checking that an article can be watched should suffice here. Bug: T224947 Change-Id: I3049e1b190c3cb2ddc198a45681f59782f770d6a
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
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( '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' );
|
|
} );
|
|
} );
|