Dirty fix race condition

This commit is contained in:
Jesse C. Fisher 2021-11-03 01:07:09 -07:00
parent abf0bf4b4b
commit 6a58d32ffd

View File

@ -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