Skip to content

Commit

Permalink
Adjust test waiting time
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Nov 28, 2018
1 parent d5caddd commit ca09f14
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/capybara/spec/session/click_button_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
@session.visit('/form')
end

it 'should wait for asynchronous load', requires: [:js] do
it 'should wait for asynchronous load', :focus_, requires: [:js] do
@session.visit('/with_js')
@session.click_link('Click me')
@session.click_button('New Here')
@session.using_wait_time(1.5) do
@session.click_link('Click me')
@session.click_button('New Here')
end
end

it 'casts to string' do
Expand Down

0 comments on commit ca09f14

Please sign in to comment.