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

Loosen timing requirements on click test

This commit is contained in:
Thomas Walpole 2017-06-07 10:32:33 -07:00
parent 007de61922
commit 0459299a9c

View file

@ -54,7 +54,7 @@ Capybara::SpecHelper.spec '#find' do
it "should find element if it appears before given wait duration" do
@session.visit('/with_js')
@session.click_link('Click me')
expect(@session.find(:css, "a#has-been-clicked", wait: 0.9).text).to include('Has been clicked')
expect(@session.find(:css, "a#has-been-clicked", wait: 2.0).text).to include('Has been clicked')
end
end