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

Improve test reliability

This commit is contained in:
Thomas Walpole 2020-07-05 16:35:35 -07:00
parent 8d576fb4ca
commit 4a77bc3195

View file

@ -25,6 +25,8 @@ Capybara::SpecHelper.spec '#refresh' do
@session.visit('/form') @session.visit('/form')
@session.select('Sweden', from: 'form_region') @session.select('Sweden', from: 'form_region')
@session.click_button('awesome') @session.click_button('awesome')
expect(@session).to have_text('Sinatra::IndifferentHash')
expect do expect do
@session.refresh @session.refresh
sleep 2 sleep 2