mediawiki-skins-MinervaNeue/tests/browser/features/editor_wikitext_saving.feature
jdlrobson 8ad57f9b0e QA: Stabilise browser tests
Changes:
* Default skin is not configured so noticed on test runs it's using
Default skin for desktop mode. Given this has no footer and way to
switch to mobile this could be problematic in future.
* Remove empty README
* Drop suggested language integration test - setting up interwiki links currently
happens via InterwikiLoadPrefix hook however this seems to be unreliable. The beta
cluster is a much more reliable place to test language links so let's rely on that
instead.
* Drop unnecessary heading check from "Successful edit" scenario. It's unnecessary
and flakey (presumably given the title doesn't change)
* Rename test scenario and remove a duplicate scenario

Depends-On: I888b3c546f77fa350853a7bf9bfbfbeb8ed6de67
Change-Id: I45792a95df7fd4c3299accbffadfa447baefe0ce
2018-06-08 19:59:05 +00:00

42 lines
1.5 KiB
Gherkin

@en.m.wikipedia.beta.wmflabs.org @firefox @test2.m.wikipedia.org @login
Feature: Wikitext Editor (Makes actual saves)
Background:
Given I am logged into the mobile website
@editing @integration
Scenario: It is possible to edit
Given I go to a page that has languages
When I click the edit button
And I see the wikitext editor overlay
And I type "ABC GHI" into the editor
And I click continue
And I click submit
And I do not see the wikitext editor overlay
Then I should see a toast notification
@editing
Scenario: Redirects
Given the page "Selenium wikitext editor test" exists
And I am on a page that does not exist
When I click the edit button
And I clear the editor
And I type "#REDIRECT [[Selenium wikitext editor test]]" into the editor
And I click continue
And I click submit
And I say OK in the confirm dialog
And I do not see the wikitext editor overlay
Then the text of the first heading should be "Selenium wikitext editor test"
@editing
Scenario: Broken redirects
Given I am on a page that does not exist
When I click the edit button
And I clear the editor
And I type "#REDIRECT [[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]]" into the editor
And I click continue
And I click submit
And I say OK in the confirm dialog
And I do not see the wikitext editor overlay
Then there should be a red link with text "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"