2018-11-30 00:40:02 +00:00
|
|
|
@test2.m.wikipedia.org @login
|
2017-06-09 19:12:53 +00:00
|
|
|
Feature: Wikitext Editor (Makes actual saves)
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I am logged into the mobile website
|
|
|
|
|
2018-05-29 09:15:24 +00:00
|
|
|
@editing @integration
|
|
|
|
Scenario: It is possible to edit
|
2017-06-09 19:12:53 +00:00
|
|
|
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
|
|
|
|
|
2018-11-30 00:40:02 +00:00
|
|
|
@editing @en.m.wikipedia.beta.wmflabs.org
|
2017-06-09 19:12:53 +00:00
|
|
|
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"
|
|
|
|
|
2018-11-30 00:40:02 +00:00
|
|
|
@editing @en.m.wikipedia.beta.wmflabs.org
|
2017-06-09 19:12:53 +00:00
|
|
|
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"
|