gitlabhq/spec/support/js_patch.rb

7 lines
198 B
Ruby
Raw Normal View History

2011-10-13 03:00:00 +02: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