Remove sleep deprecated race condition workaround
This commit is contained in:
parent
802b692623
commit
96219ff1b4
@ -16,7 +16,7 @@ feature 'Play now', :devise do
|
||||
end
|
||||
it 'creates and joins a new game' do
|
||||
#TODO: Fix race condition
|
||||
sleep 2
|
||||
# sleep 2
|
||||
expect(page).to have_content "Hand to beat"
|
||||
#Game title derived from visitor soft_token
|
||||
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 "Hand to beat"
|
||||
# TODO fix race condition
|
||||
sleep 8
|
||||
# sleep 8
|
||||
#it 'is located at the correct url' do
|
||||
expect(page).to have_current_path(table_path(@table))
|
||||
expect(page).to have_content "Guest"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user