mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "[Browser tests] Move "I can click the X on the save box" to shared_steps.rb"
This commit is contained in:
commit
f89254509a
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue