mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Allow enough time for Chrome to retry click
This commit is contained in:
parent
553975782a
commit
bfe0a72c39
1 changed files with 3 additions and 2 deletions
|
@ -299,8 +299,9 @@ RSpec.shared_examples 'Capybara::Session' do |session, mode|
|
|||
describe 'Element#click' do
|
||||
it 'should handle fixed headers/footers' do
|
||||
session.visit('/with_fixed_header_footer')
|
||||
# session.click_link('Go to root')
|
||||
session.find(:link, 'Go to root').click
|
||||
session.using_wait_time(2) do
|
||||
session.find(:link, 'Go to root').click
|
||||
end
|
||||
expect(session).to have_current_path('/')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue