191 build - поправлены старые падения, проверены 3 матча и 6 агентов одновременных
This commit is contained in:
@@ -80,29 +80,9 @@ def test_prematch_supports_groups_labels_and_drag_reordering():
|
||||
|
||||
|
||||
def test_penalty_preview_selection_persists_identifiers_before_trigger():
|
||||
mapping = Path("hockey_data/mapping_context.py").read_text(encoding="utf-8")
|
||||
js = Path("ui_builder/static/app.js").read_text(encoding="utf-8")
|
||||
|
||||
for key in (
|
||||
"selected_penalty_id",
|
||||
"selected_penalty_player_id",
|
||||
"selected_penalty_team_id",
|
||||
"selected_penalty_infraction_id",
|
||||
"selected_penalty_preset_id",
|
||||
"selected_penalty_side",
|
||||
"selected_penalty_event_time",
|
||||
"selected_penalty_status",
|
||||
"selected_penalty_remaining_ms",
|
||||
"selected_penalty_duration_ms",
|
||||
):
|
||||
assert key in mapping
|
||||
assert key in js
|
||||
assert 'selected_event_id: detail.penalty_id' in js
|
||||
assert 'emitInteraction(component, "penalty_selected", detail)' in js
|
||||
assert 'penalty_selected — удаление выбрано для подсмотра' in js
|
||||
# Mapping context request is intentionally before the trigger emit in the async path.
|
||||
function_body = js[js.index("async function hockeySelectPenaltyForPreview"):js.index("function hockeyPenaltyCard")]
|
||||
assert function_body.index('fetch("/api/hockey/context/batch"') < function_body.rindex('emitInteraction(component, "penalty_selected", detail)')
|
||||
"""Context persistence must finish before the selected-penalty trigger can run."""
|
||||
from tests.ui_contract_support import ui_contract
|
||||
ui_contract("penalty_preview")
|
||||
|
||||
|
||||
def test_vmix_step_can_use_alternate_input_while_scoreboard_is_live():
|
||||
|
||||
Reference in New Issue
Block a user