1. поправлено работа с таймерами в vMix
2. поправлено немного Заготовки
This commit is contained in:
@@ -106,7 +106,7 @@ def test_shortcut_editor_layout_fixes_add_step_buttons_and_fullscreen_modal() ->
|
||||
|
||||
def test_hockey_timer_shortcut_supports_native_countdown_and_legacy_text_mirror() -> None:
|
||||
app_js = Path("ui_builder/static/app.js").read_text(encoding="utf-8")
|
||||
assert 'Function: "PauseCountdown"' in app_js
|
||||
assert 'Function: "SuspendCountdown"' in app_js
|
||||
assert 'Function: "StopCountdown"' in app_js
|
||||
assert 'hockey_timer_command' in app_js
|
||||
assert 'game_vmix_mode' in app_js
|
||||
@@ -183,8 +183,11 @@ def test_hockey_timer_targets_persist_selected_names_and_finish_actions(tmp_path
|
||||
def test_hockey_countdown_uses_selected_name_for_game_and_penalty_targets() -> None:
|
||||
app_js = Path("ui_builder/static/app.js").read_text(encoding="utf-8")
|
||||
|
||||
assert 'Function: "SetCountdown", Input: step.game_vmix_input, SelectedName: step.game_vmix_selected_name' in app_js
|
||||
assert 'Function: "SetCountdown", Input: target.input, SelectedName: target.selected_name' in app_js
|
||||
assert 'function vmixCountdownSyncCommands(input, selectedName' in app_js
|
||||
assert 'SelectedName: String(selectedName || "").trim()' in app_js
|
||||
assert 'step.game_vmix_selected_name, () => gameTimerState.currentMs' in app_js
|
||||
assert 'target.input, target.selected_name, () => event.remainingMs' in app_js
|
||||
assert 'Input: target.input, SelectedName: target.selected_name' in app_js
|
||||
assert 'vmixTextSelectedNameOptions' in app_js
|
||||
assert 'data-penalty-target-field="selected_name"' in app_js
|
||||
assert 'data-finish-action-add' in app_js
|
||||
@@ -249,7 +252,7 @@ def test_build90_native_countdown_avoids_per_second_transport() -> None:
|
||||
app_js = Path("ui_builder/static/app.js").read_text(encoding="utf-8")
|
||||
assert 'game_vmix_mode !== "countdown"' in app_js
|
||||
assert 'const countdownMode = step.penalty_vmix_mode === "countdown"' in app_js
|
||||
assert 'Function: "PauseCountdown"' in app_js
|
||||
assert 'Function: "SuspendCountdown"' in app_js
|
||||
assert 'Function: "StopCountdown"' in app_js
|
||||
assert 'signal: controller.signal' in app_js
|
||||
assert 'vmixCommandQueue: Promise.resolve()' in app_js
|
||||
|
||||
Reference in New Issue
Block a user