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