X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1ce0bd54f40a686959e95e63f7aaa8b233269932..f4c5d28ce98099b2f4204b5875449d76609c6a1c:/apps/workbench/test/integration_helper.rb diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index 424b6665cf..3d92585135 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -72,6 +72,12 @@ 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