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:
parent
007de61922
commit
0459299a9c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue