mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 19:26:46 +00:00
[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:
parent
fe04b902fb
commit
9eb121134f
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue