update 3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user