mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 04:43:18 +00:00
Merge "Workaround for Safari web driver"
This commit is contained in:
commit
6aa3dddf80
|
@ -43,7 +43,12 @@ When /^I click the image$/ do
|
|||
on(E2ETestPage) do |page|
|
||||
# Clicking the top-left corner of the image is necessary for the test to work on IE
|
||||
# A plain click on the image element ends up hitting the dialog, which means it won't close
|
||||
begin
|
||||
@browser.driver.action.move_to(@browser.driver.find_element(:class, 'mw-mmv-image'), 10, 10).click.perform
|
||||
rescue
|
||||
# Plain click for web drivers that don't support mouse moves (Safari, currently)
|
||||
on(E2ETestPage).mmv_image_div_element.when_present.click
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue