fix: seed valid beamer e2e tournaments

This commit is contained in:
Daniel Schädler 2026-04-23 14:56:01 +02:00
parent 7151976d26
commit d58b9251d0
2 changed files with 8 additions and 2 deletions

View File

@ -79,7 +79,10 @@ RSpec.describe 'Tournament beamer websocket HTTP E2E' do
response = client.post('/tournaments', body: {
name: "#{name_prefix} #{SecureRandom.hex(3)}",
description: 'Websocket beamer tournament',
public: true
public: true,
teams: 4.times.map do |index|
{ name: "#{name_prefix.tr(' ', '')}-S#{index + 1}" }
end
})
expect(response[:status]).to eq(201)
response.fetch(:json)

View File

@ -68,7 +68,10 @@ RSpec.describe 'Tournament follower sync beamer websocket HTTP E2E' do
response = client.post('/tournaments', body: {
name: "#{name_prefix} #{SecureRandom.hex(3)}",
description: 'Follower beamer websocket source tournament',
public: true
public: true,
teams: 4.times.map do |index|
{ name: "#{name_prefix.tr(' ', '')}-S#{index + 1}" }
end
})
expect(response[:status]).to eq(201)
fetch_tournament(base_url:, tournament_id: response.dig(:json, :id))