1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

relax timing on accept alert test

This commit is contained in:
Thomas Walpole 2020-07-04 14:53:22 -07:00
parent de542cc2d5
commit f2a8ee3ef0

View file

@ -53,7 +53,7 @@ Capybara::SpecHelper.spec '#accept_alert', requires: [:modals] do
@session.click_link('Alert page change') @session.click_link('Alert page change')
sleep 1 # ensure page change occurs before the accept_alert block exits sleep 1 # ensure page change occurs before the accept_alert block exits
end end
expect(@session).to have_current_path('/with_html') expect(@session).to have_current_path('/with_html', wait: 5)
end end
context 'with an asynchronous alert' do context 'with an asynchronous alert' do