fix: seed valid beamer e2e tournaments
This commit is contained in:
parent
7151976d26
commit
d58b9251d0
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue