2.0 KiB
Backend E2E Known Behaviors
This file records non-obvious backend behaviors that the E2E suite intentionally preserves.
HTTP E2E auth bootstrap
The lifecycle scenarios themselves run only through the HTTP API.
One bootstrap exception currently exists:
- the backend requires email confirmation before a newly registered user can sign in
- there is no public API to complete that confirmation loop without accessing the email channel
- because of that, HTTP E2E runs need a pre-confirmed user
The reusable scenario script supports this through:
TURNIERE_E2E_EMAILTURNIERE_E2E_PASSWORD- optional
TURNIERE_E2E_USERNAME
Frontend tests can use the same script against a live backend as long as those credentials point to a confirmed account on that backend.
Group stage to playoff conversion with 3 groups and playoff_teams_amount = 4
Observed and covered by spec/e2e/http/tournament_lifecycle_spec.rb and script/e2e_scenarios.rb:
instant_finalists_amountbecomes3intermediate_round_participants_amountbecomes2- this means
5teams advance out of the group stage into the playoff tree - the resulting playoff entry stage is an
intermediate_stagewith:3single_teammatches1regular match
This can look surprising if playoff_teams_amount = 4 is read as "exactly four teams leave the group stage". The current backend instead models "four playoff slots after the intermediate round", which is the behavior the new E2E tests lock in.
Large tournament render profiling
Observed and covered by spec/e2e/http/tournament_rendering_spec.rb and script/e2e_scenarios.rb:
- large group-stage tournaments are created through the same authenticated HTTP
POST /tournamentsflow as normal clients - tournament show profiling is requested via
GET /tournaments/:id?profile=true - the backend returns
Server-TimingandX-Turniere-Profileheaders withload_tournamentandserialize_tournament - current locked shapes are
8x4,64x6, and4x32