QA: back button workaround for Safari

Bug T85802

Change-Id: I4a3b360ffddbab5c22ca1eb3b03c45159425de70
This commit is contained in:
Cmcmahon 2015-01-05 09:42:36 -07:00
parent 9119af8534
commit c3a7bb5782

View file

@ -9,7 +9,8 @@ When /^I click the previous arrow$/ do
end
When /^I press the browser back button$/ do
$browser.back
# $browser.back doesn't work for Safari. This is a workaround for https://code.google.com/p/selenium/issues/detail?id=3771
on(E2ETestPage).execute_script("window.history.back();");
end
Then /^the image and metadata of the next image should appear$/ do