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:
parent
4021309a42
commit
9c99f75247
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue