From 18612e2efcef92f56fdf2d4f658ddff8ee0fd313 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sun, 19 Sep 2021 00:26:45 -0700 Subject: [PATCH] Fix tests --- spec/features/plays_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/features/plays_spec.rb b/spec/features/plays_spec.rb index 1d0fabef..89242563 100644 --- a/spec/features/plays_spec.rb +++ b/spec/features/plays_spec.rb @@ -32,8 +32,7 @@ feature 'Play a hand', type: :feature, js: true do # Play the highest card @card_to_play = @player.inventory.last find_card(@card_to_play).click - #click_button 'Play Hand' - click_button "play_hand_button_#{@player.id}" + click_button 'Play Hand' # No play to beat, because play was invalid expect(@game.play_to_beat).to eq(nil) @@ -49,9 +48,8 @@ feature 'Play a hand', type: :feature, js: true do # Then I see the hand to beat is this play scenario 'first play contains lowest card' do @card_to_play = @game.lowest_card - find_card(@card_to_play).click - #click_button 'Play Hand' - click_button "play_hand_button_#{@player.id}" + find_card(@card_to_play).click(x: 0, y: 0) + click_button 'Play Hand' expect(cards_to_beat).to eq @game.lowest_card.to_s end