This commit is contained in:
2026-09-26 23:18:54 +03:00
parent c707c60a35
commit 5c203a0eea
18 changed files with 1558 additions and 56 deletions

View File

@@ -7,7 +7,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 "if (hockeyScoreboardIsLive())" in snippet
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
@@ -15,7 +16,7 @@ def test_penalty_overlay_auto_in_does_not_retrigger_visible_target():
start = APP_JS.index("async function rebalanceVmixPenaltyTargets")
end = APP_JS.index("function finishActionMatchesSource", start)
snippet = APP_JS[start:end]
assert "const targetWasVisible = Boolean(previous?.input)" in snippet
assert "previous?.visible === true && Boolean(previous?.input)" in snippet
assert "if (!targetWasVisible)" in snippet