fix: avoid rails array helper in websocket e2e

This commit is contained in:
Daniel Schädler 2026-04-23 12:50:17 +02:00
parent 78518afbd5
commit 0f4ed8a0c3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ RSpec.describe 'Tournament team action lists websocket HTTP E2E' do
expect(initial_payload.fetch('team_action_lists').first.fetch('key')).to eq('group_stage_survivor_playoff_tokens')
first_item = token_list.fetch(:team_action_items).first
second_item = token_list.fetch(:team_action_items).second
second_item = token_list.fetch(:team_action_items)[1]
update_by_item_id = client.patch("/team_action_items/#{first_item.fetch(:id)}", body: { completed: true })
expect(update_by_item_id[:status]).to eq(200)