X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f04a6c74663185addff5564b47db0442679de78e..e1276d6ebfbf073b747825cfcbfdd0054b95efa4:/apps/workbench/test/integration_helper.rb diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index 74072caaad..785912d324 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -56,7 +56,7 @@ Capybara.register_driver :selenium_with_download do |app| end module WaitForAjax - Capybara.default_max_wait_time = 5 + Capybara.default_max_wait_time = 10 def wait_for_ajax Timeout.timeout(Capybara.default_max_wait_time) do loop until finished_all_ajax_requests? @@ -126,6 +126,20 @@ module HeadlessHelper end end +module KeepWebConfig + def getport service + File.read(File.expand_path("../../../../tmp/#{service}.port", __FILE__)) + end + + def use_keep_web_config + @kwport = getport 'keep-web-ssl' + @kwdport = getport 'keep-web-dl-ssl' + Rails.configuration.keep_web_url = "https://localhost:#{@kwport}/c=%{uuid_or_pdh}" + Rails.configuration.keep_web_download_url = "https://localhost:#{@kwdport}/c=%{uuid_or_pdh}" + CollectionsController.any_instance.expects(:file_enumerator).never + end +end + class ActionDispatch::IntegrationTest # Make the Capybara DSL available in all integration tests include Capybara::DSL