Skip to content

Commit 50e4e8f

Browse files
committed
Make end to end specs less brittle
Insert a short sleep while waiting for Ajax to ensure all requests have finished and the select is done updating.
1 parent 4b99677 commit 50e4e8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/features/end_to_end_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def select_box_items
8080

8181
def wait_for_ajax
8282
Timeout.timeout(Capybara.default_max_wait_time) do
83+
sleep 0.1
8384
loop until finished_all_ajax_requests?
8485
end
8586
end

0 commit comments

Comments
 (0)