Merge "[Browser tests] Move "I can click the X on the save box" to shared_steps.rb"

This commit is contained in:
jenkins-bot 2014-04-23 18:31:09 +00:00 committed by Gerrit Code Review
commit f89254509a
2 changed files with 4 additions and 4 deletions

View file

@ -19,10 +19,6 @@ Then(/^(.+) should appear in the diff view$/) do |headings_string|
end end
end end
Then(/^I can click the X on the save box$/) do
on(VisualEditorPage).ex_element.when_present.click
end
When(/^I click Heading$/) do When(/^I click Heading$/) do
on(VisualEditorPage).heading_element.when_present.click on(VisualEditorPage).heading_element.when_present.click
end end

View file

@ -66,3 +66,7 @@ end
Then(/^Page text should contain (.+)$/) do |output_string| Then(/^Page text should contain (.+)$/) do |output_string|
on(VisualEditorPage).page_text_element.when_present.text.should match Regexp.escape(output_string + " #{@random_string}") on(VisualEditorPage).page_text_element.when_present.text.should match Regexp.escape(output_string + " #{@random_string}")
end end
Then(/^I can click the X on the save box$/) do
on(VisualEditorPage).ex_element.when_present.click
end