feat(audio): air horn for start and finish, count 10..3 then quiet until the horn 1-3 s later (1.55.0)

This commit is contained in:
larssand committed 2026-11-03 08:56:15 +01:00
1 parent a8996c4195
commit 3425da4b8f
16 files changed
+67 -31

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ export async function runRaceDayStartSequencesSmoke({ evaluate, navigate, waitFo
assert.ok([...observedCountdown].filter((text) => /^0:(0\d|10)$/.test(String(text || ""))).length >= 3, "count-down clock ticked down from 10 s: " + JSON.stringify([...observedCountdown]));
await waitFor(async () => (await findSession(sessions[0].id)).status === "running", "heat running after its count-down + light sequence", 20000);
const heatLog = (await savedState()).audioEventLog.slice(0, 12).map((entry) => entry.event);
assert.ok(heatLog.includes("prologue_count") && heatLog.includes("race_10_seconds"), "the count-down called 10 s and 9..3: " + JSON.stringify(heatLog));
assert.ok(heatLog.filter((event) => event === "prologue_count").length === 8 && !heatLog.includes("race_10_seconds"), "the count-down called 10, 9 … 3: " + JSON.stringify(heatLog));
assert.ok(!heatLog.includes("drivers_ready") && !heatLog.includes("race_30_seconds"), "no second count-down after the prologue: " + JSON.stringify(heatLog));
console.log("PASS heat start runs a real count-down + light sequence instead of starting instantly");