We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de29768 commit 9d5cee6Copy full SHA for 9d5cee6
spec/support/wait_for_ajax.rb
@@ -6,9 +6,8 @@ def wait_for_ajax
6
timeout = Capybara.default_max_wait_time
7
8
loop do
9
- break if ajax_requests_finished? || (Time.current - start_time) > timeout
10
-
11
sleep 0.1 # Short sleep time to prevent busy waiting
+ break if ajax_requests_finished? || (Time.current - start_time) > timeout
12
end
13
14
0 commit comments