Dirty fix race condition

This commit is contained in:
Jesse C. Fisher 2021-11-03 01:07:09 -07:00
parent 65b7c90722
commit d305d256d1

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