From 2cc50d88ba57930a0b8b6518297e35cd90ee6142 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Wed, 3 Nov 2021 01:07:09 -0700 Subject: [PATCH] Dirty fix race condition --- spec/features/seats/seats_sit_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/features/seats/seats_sit_spec.rb b/spec/features/seats/seats_sit_spec.rb index 534a187..df6b596 100644 --- a/spec/features/seats/seats_sit_spec.rb +++ b/spec/features/seats/seats_sit_spec.rb @@ -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