Skip to content

Commit

Permalink
fix small timing issue in test
Browse files Browse the repository at this point in the history
twalpole committed Nov 20, 2015
1 parent 4021309 commit 9c99f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/capybara/spec/session/window/window_opened_by_spec.rb
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@
expect do
@session.window_opened_by do
button.click
sleep 0.1 # It's possible for window_opened_by to be fullfilled before the second window opens
end
end.to raise_error(Capybara::WindowError, two_windows_message)
@session.document.synchronize(2, errors: [Capybara::CapybaraError]) do

0 comments on commit 9c99f75

Please sign in to comment.