have dont_find methods check twice, once now, once after Capybara.default_wait_time
This commit is contained in:
parent
6e4acf7966
commit
4dffc6c84f
|
@ -77,6 +77,10 @@ end
|
|||
def dont_find_wrap(search)
|
||||
yield
|
||||
|
||||
sleep Capybara.default_wait_time
|
||||
|
||||
yield
|
||||
|
||||
raise Capybara::ElementFound.new(search)
|
||||
rescue Capybara::ElementNotFound
|
||||
true
|
||||
|
|
Loading…
Reference in New Issue