BUILD196 — обновлять большинство и составы, задерживать связанные плашки

This commit is contained in:
2026-10-22 11:51:28 +03:00
parent 6491e95143
commit f3018b97c3
31 changed files with 3226 additions and 81 deletions

View File

@@ -1,15 +1,18 @@
from pathlib import Path
import subprocess
APP_JS = (Path(__file__).resolve().parents[1] / "ui_builder" / "static" / "app.js").read_text(encoding="utf-8")
def test_ready_penalty_opens_target_when_scoreboard_is_live():
start = APP_JS.index("async function rebalanceVmixPenaltyTargets")
end = APP_JS.index("function finishActionMatchesSource", start)
snippet = APP_JS[start:end]
assert "scoreboardActive === null ? hockeyScoreboardIsLive() : Boolean(scoreboardActive)" in snippet
assert "if (scoreboardLive)" in snippet
assert 'inCommands.push({ Function: `OverlayInput${overlay}In`, Input: target.input });' in snippet
root = Path(__file__).resolve().parents[1]
case = "zero_delay_scoreboard_live_only"
result = subprocess.run(
["node", str(root / "tests/build196_scoreboard_delay.cjs"), case],
cwd=root, capture_output=True, text=True, timeout=15,
)
assert result.returncode == 0, result.stdout + result.stderr
assert f"PASS scoreboard delay frontend: {case}" in result.stdout
def test_penalty_overlay_auto_in_does_not_retrigger_visible_target():