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

Doesn't belong in headings_steps.rb because it's used in other
*.feature files like bullets.feature

Change-Id: I23d3772653140e6e4639785c3622fc9a2b446801
This commit is contained in:
Roan Kattouw 2014-04-21 18:08:23 -07:00
parent fe04b902fb
commit 9eb121134f
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
Then(/^I can click the X on the save box$/) do
on(VisualEditorPage).ex_element.when_present.click
end
When(/^I click Heading$/) do
on(VisualEditorPage).heading_element.when_present.click
end

View file

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