gitlabhq/spec/support/js_patch.rb
2011-10-09 00:36:38 +03:00

7 lines
198 B
Ruby

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