Fix test game path

This commit is contained in:
Jesse C. Fisher 2021-11-02 19:52:58 -07:00
parent dc58e28520
commit 65b7c90722
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ feature 'Join a game', type: :feature, js: true do
@game = FactoryGirl.create :game
@user = FactoryGirl.create :user
login_as(@user, scope: :user)
visit game_path @game
visit table_path @game.table
click_button "Sit", match: :first
expect(page).to have_content @user.display_name
end
@ -37,7 +37,7 @@ feature 'Join a game', type: :feature, js: true do
@game = FactoryGirl.create :game
@user = FactoryGirl.create :user
login_as(@user, scope: :user)
visit game_path @game
visit table_path @game.table
click_button "Sit", match: :first
expect(page).to have_content @user.display_name
click_button "Sit", match: :first

View File

@ -5,7 +5,7 @@ Warden.test_mode!
feature 'Play a hand', type: :feature, js: true do
before(:each) do
@game = setup_visitor_game
visit game_path @game
visit table_path @game.table
click_button "Sit", match: :first
#TODO: Fix race condition
sleep 2