X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/54cd184005d14ba93e93ae0eeb16ea70ee09a3b6..4c6c49190b5a8949120d822e053657f64146df70:/apps/workbench/test/integration_helper.rb diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index d5be993a4f..7209f2b6c9 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' require 'capybara/rails' require 'capybara/poltergeist' @@ -25,6 +29,9 @@ end def selenium_opts { port: available_port('selenium'), + desired_capabilities: Selenium::WebDriver::Remote::Capabilities.firefox( + acceptInsecureCerts: true, + ), } end @@ -71,6 +78,14 @@ Capybara.register_driver :selenium_with_download do |app| end module WaitForAjax + # FIXME: Huge side effect here + # The following line changes the global default Capybara wait time, affecting + # every test which follows this one. This should be removed and the failing tests + # should have their individual wait times increased, if appropriate, using + # the using_wait_time(N) construct to temporarily change the wait time. + # Note: the below is especially bad because there are places that increase wait + # times using a multiplier e.g. using_wait_time(3 * Capybara.default_max_wait_time) + Capybara.default_max_wait_time = 10 def wait_for_ajax timeout = 10 count = 0 @@ -88,14 +103,14 @@ module AssertDomEvent # DOM element. def assert_triggers_dom_event events, target='body' magic = 'received-dom-event-' + rand(2**30).to_s(36) - page.evaluate_script <