mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
f055f8d789
Given the fade in/out animation of the toasts and the instability of the beta cluster and the round trips to Sauce labs, we're seeing lots of false positives on our browser test reports Running these per commit should ensure we see minimal regressions and get some protection. We'll continue to test other scenarios which do not involve the toast on beta cluster. Provided we can rely on green browser tests, we will trust the browser tests more and they will be more useful than they currently are. Bug: T208808 Change-Id: Idc601ad462de36f2d6d52fe951194b429e6f824f
42 lines
1.5 KiB
Gherkin
42 lines
1.5 KiB
Gherkin
@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 @en.m.wikipedia.beta.wmflabs.org
|
|
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 @en.m.wikipedia.beta.wmflabs.org
|
|
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"
|