Merge "[browser test] Refactor Headings test to use the API"

This commit is contained in:
jenkins-bot 2014-05-07 20:45:35 +00:00 committed by Gerrit Code Review
commit 8805d5427b
2 changed files with 14 additions and 11 deletions

View file

@ -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" |

View file

@ -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