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
1 changed files with 3 additions and 2 deletions

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