1
0
Fork 0
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:
Thomas Walpole 2019-11-29 10:42:59 -08:00
parent 553975782a
commit bfe0a72c39

View file

@ -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