Remove sleep deprecated race condition workaround

This commit is contained in:
Jesse C. Fisher 2021-12-18 23:06:10 -08:00
parent 802b692623
commit 96219ff1b4

View File

@ -16,7 +16,7 @@ feature 'Play now', :devise do
end end
it 'creates and joins a new game' do it 'creates and joins a new game' do
#TODO: Fix race condition #TODO: Fix race condition
sleep 2 # sleep 2
expect(page).to have_content "Hand to beat" expect(page).to have_content "Hand to beat"
#Game title derived from visitor soft_token #Game title derived from visitor soft_token
expect(page).to have_content "#{Game.last.players.first.soft_token[0..4]}" expect(page).to have_content "#{Game.last.players.first.soft_token[0..4]}"
@ -39,7 +39,7 @@ feature 'Play now', :devise do
#expect(page).to have_content "Test Game" #expect(page).to have_content "Test Game"
# expect(page).to have_content "Hand to beat" # expect(page).to have_content "Hand to beat"
# TODO fix race condition # TODO fix race condition
sleep 8 # sleep 8
#it 'is located at the correct url' do #it 'is located at the correct url' do
expect(page).to have_current_path(table_path(@table)) expect(page).to have_current_path(table_path(@table))
expect(page).to have_content "Guest" expect(page).to have_content "Guest"