Dirty fix race condition
This commit is contained in:
parent
abf0bf4b4b
commit
6a58d32ffd
@ -82,12 +82,15 @@ feature 'Seats', :devise, js: true do
|
||||
|
||||
scenario 'user can sit at the table' do
|
||||
#TODO: Fix race condition
|
||||
sleep 3
|
||||
expect(page).to have_content "Sit"
|
||||
click_button 'Sit', match: :first
|
||||
expect(page).to have_content @user.email
|
||||
end
|
||||
|
||||
scenario 'user can join the current game' do
|
||||
#TODO: Fix race condition
|
||||
sleep 3
|
||||
expect(page).to have_content "Sit"
|
||||
click_button 'Sit', match: :first
|
||||
expect(page).to have_content @user.email
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user