mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 10:36:04 +10:00
Add sleep call before yield in allowing_for_delay
This is to give pending AJAX requests time to complete before we navigate away, for example.
This commit is contained in:
committed by
Dmitriy Zaporozhets
parent
bf71d53f63
commit
1dd42da802
@@ -14,6 +14,8 @@ module CapybaraHelpers
|
||||
tries = 0
|
||||
|
||||
begin
|
||||
sleep interval
|
||||
|
||||
yield
|
||||
rescue Capybara::ExpectationNotMet => ex
|
||||
if tries <= retries
|
||||
|
||||
Reference in New Issue
Block a user