1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

fix small timing issue in test

This commit is contained in:
Thomas Walpole 2015-11-20 14:36:07 -08:00
parent 4021309a42
commit 9c99f75247

View file

@ -72,6 +72,7 @@ Capybara::SpecHelper.spec '#window_opened_by', requires: [:windows] do
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