gitlabhq/spec/support/js_patch.rb

7 lines
198 B
Ruby
Raw Normal View History

2011-10-08 23:36:38 +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