| 1 |
@test2.m.wikipedia.org @login |
| 2 |
Feature: Wikitext Editor (Makes actual saves) |
| 3 |
|
| 4 |
Background: |
| 5 |
Given I am logged into the mobile website |
| 6 |
|
| 7 |
@editing @en.m.wikipedia.beta.wmflabs.org |
| 8 |
Scenario: Redirects |
| 9 |
Given the page "Selenium wikitext editor test" exists |
| 10 |
And I am on a page that does not exist |
| 11 |
When I click the edit button |
| 12 |
And I clear the editor |
| 13 |
And I type "#REDIRECT [[Selenium wikitext editor test]]" into the editor |
| 14 |
And I click continue |
| 15 |
And I click submit |
| 16 |
And I say OK in the confirm dialog |
| 17 |
And I do not see the wikitext editor overlay |
| 18 |
Then the text of the first heading should be "Selenium wikitext editor test" |
| 19 |
|
| 20 |
@editing @en.m.wikipedia.beta.wmflabs.org |
| 21 |
Scenario: Broken redirects |
| 22 |
Given I am on a page that does not exist |
| 23 |
When I click the edit button |
| 24 |
And I clear the editor |
| 25 |
And I type "#REDIRECT [[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]]" into the editor |
| 26 |
And I click continue |
| 27 |
And I click submit |
| 28 |
And I say OK in the confirm dialog |
| 29 |
And I do not see the wikitext editor overlay |
| 30 |
Then there should be a red link with text "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" |