mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Chrome does not always dismiss the beta warning
Change-Id: I48249852d308cfb68ab64cedde6a83f41879ff36
This commit is contained in:
parent
dabe8ad402
commit
09ed99ef81
|
@ -9,11 +9,15 @@ end
|
|||
When(/^I click Edit for VisualEditor$/) do
|
||||
on(VisualEditorPage) do |page|
|
||||
page.edit_ve_element.when_present.click
|
||||
# Attempt to dismiss "beta warning" pop-up multiple times, since SauceLabs sometimes fails on the first attempt to dismiss.
|
||||
try = 10
|
||||
try.times do
|
||||
#This begin/rescue clause dismisses the VE warning message when it exists, and does not fail when it does not exist
|
||||
begin
|
||||
page.beta_warning_element.when_present.click
|
||||
rescue
|
||||
end
|
||||
end
|
||||
page.content_element.fire_event("onfocus")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue