mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Merge "[browser test] Refactor Headings test to use the API"
This commit is contained in:
commit
8805d5427b
|
@ -1,6 +1,10 @@
|
|||
@edit_user_page @firefox @login
|
||||
@chrome @firefox @login
|
||||
Feature: VisualEditor Headings
|
||||
|
||||
Background:
|
||||
Given I go to the "Headings VisualEditor Test" page with content "Headings VisualEditor Test"
|
||||
And I make the text "Headings VisualEditor Test" be selected
|
||||
|
||||
Scenario Outline: Cycle through headings values
|
||||
When I click the down arrow on Headings interface
|
||||
And I click <headings_interface_name>
|
||||
|
@ -9,12 +13,11 @@ Feature: VisualEditor Headings
|
|||
Then <headings_string> should appear in the diff view
|
||||
And I can click the X on the save box
|
||||
Examples:
|
||||
| headings_interface_name | headings_string |
|
||||
| Paragraph | "^Editing" |
|
||||
| Heading | "^== Editing" |
|
||||
| Subheading1 | "^=== Editing" |
|
||||
| Subheading2 | "^==== Editing" |
|
||||
| Subheading3 | "^===== Editing" |
|
||||
| Subheading4 | "^====== Editing" |
|
||||
| Preformatted | " Editing" |
|
||||
| Page title | "^= Editing" |
|
||||
| headings_interface_name | headings_string |
|
||||
| Heading | "^== Headings VisualEditor Test" |
|
||||
| Subheading1 | "^=== Headings VisualEditor Test" |
|
||||
| Subheading2 | "^==== Headings VisualEditor Test" |
|
||||
| Subheading3 | "^===== Headings VisualEditor Test" |
|
||||
| Subheading4 | "^====== Headings VisualEditor Test" |
|
||||
| Preformatted | " Headings VisualEditor Test" |
|
||||
| Page title | "^= Headings VisualEditor Test" |
|
||||
|
|
|
@ -68,7 +68,7 @@ When(/^I click Return to save form$/) do
|
|||
end
|
||||
|
||||
When(/^I click Review your changes$/) do
|
||||
on(VisualEditorPage).review_changes_element.when_present.click
|
||||
on(VisualEditorPage).review_changes_element.when_present(10).click
|
||||
end
|
||||
|
||||
When(/^I edit the description of the change$/) do
|
||||
|
|
Loading…
Reference in a new issue