Commit 7e1b491c authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab) Committed by Robert Speicher

Increase capybara JS request timeout

parent 8d90f9fd
...@@ -24,7 +24,9 @@ module WaitForRequests ...@@ -24,7 +24,9 @@ module WaitForRequests
# Wait for client-side AJAX requests # Wait for client-side AJAX requests
def wait_for_requests def wait_for_requests
wait_for('JS requests complete') { finished_all_js_requests? } wait_for('JS requests complete', max_wait_time: 2 * Capybara.default_max_wait_time) do
finished_all_js_requests?
end
end end
# Wait for active Rack requests and client-side AJAX requests # Wait for active Rack requests and client-side AJAX requests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment