191 build - поправлены старые падения, проверены 3 матча и 6 агентов одновременных

This commit is contained in:
2026-10-21 13:41:47 +03:00
parent 787f880c0e
commit bf5e0d3101
52 changed files with 4024 additions and 730 deletions

View File

@@ -25,18 +25,15 @@ def test_old_polling_stops_before_new_match_selection():
def test_selected_game_cache_is_match_scoped_and_local():
assert "/api/hockey/games/${encodeURIComponent(id)}/details?language=" in JS
assert "cachedMatchHasRosters" in JS
assert "cachedRostersReady" in JS
"""The local cache request uses the selected match and discards late responses after another switch."""
from tests.ui_contract_support import ui_contract
ui_contract("roster")
def test_first_time_match_waits_for_core_roster_before_polling():
assert "if (!manual && !cachedRostersReady)" in JS
assert "await enrichOpenedGame(String(id), state.selectedId, generation, { opening: true });" in JS
branch = JS.index("if (!manual && !cachedRostersReady)")
enrich = JS.index("await enrichOpenedGame", branch)
poll = JS.index("startSelectedGamePolling();", enrich)
assert enrich < poll
"""BUILD189 opens schedule data immediately, clears the previous roster and enriches without blocking."""
from tests.ui_contract_support import ui_contract
ui_contract("roster")
def test_opening_sync_skips_schedule_roundtrip_and_optional_shots():