mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "[BrowserTest] Fix ve.init is undefined
and ve.init.target is undefined
error messages"
This commit is contained in:
commit
659b9c3576
|
@ -205,11 +205,11 @@ class VisualEditorPage
|
|||
loop do
|
||||
begin
|
||||
browser.execute_script script
|
||||
rescue Selenium::WebDriver::Error::JavascriptError => e
|
||||
rescue Selenium::WebDriver::Error::JavascriptError, Selenium::WebDriver::Error::UnknownError => e
|
||||
else
|
||||
e = nil
|
||||
end
|
||||
break unless e.class == Selenium::WebDriver::Error::JavascriptError
|
||||
break unless (e.class == Selenium::WebDriver::Error::JavascriptError) || (e.class == Selenium::WebDriver::Error::UnknownError)
|
||||
end
|
||||
end
|
||||
browser.execute_script script
|
||||
|
|
Loading…
Reference in a new issue