mediawiki-skins-MinervaNeue/tests/browser/features/editor_wikitext_saving.feature
jdlrobson 5e9739b9ff QA: Drop some tests in Firefox
The toast tests are flaking quite a bit in Firefox but pass in Chrome.
Having them run in both Firefox and Chrome seems less important than
being able to have better confidence in non-flaking tests so I'm removing.

Bug: T208808
Change-Id: I306518a7f3eb375715f6b9d6d599bf4f711ab6aa
2018-11-15 20:53:17 +00:00

42 lines
1.5 KiB
Gherkin

@en.m.wikipedia.beta.wmflabs.org @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"