gitlab-org--gitlab-foss/spec/support/js_patch.rb

7 lines
198 B
Ruby
Raw Normal View History

2011-10-08 17:36:38 -04:00
module JsPatch
def confirm_js_popup
page.evaluate_script("window.alert = function(msg) { return true; }")
page.evaluate_script("window.confirm = function(msg) { return true; }")
end
end