feat(day): autopilot says which classes are waiting for finals (1.88.2)

This commit is contained in:
larssand committed 2026-11-10 14:43:43 +01:00
1 parent 3e78db9156
commit f92a93f521
6 files changed
+20 -6

No files matched your search

+2
View File
@@ -57,6 +57,8 @@ test("the autopilot waits for the planned time minus the count-down, never while
assert.equal(getAutopilotAction(rows, { day: {}, now: start, busy: true, prologueMs }).reason, "running");
assert.equal(getAutopilotAction(rows, { day: { pausedAt: start }, now: start, prologueMs }).reason, "paused");
assert.equal(getAutopilotAction([], { day: {}, now: start }).reason, "done");
assert.deepEqual(getAutopilotAction([], { day: {}, now: start, finalsPending: ["Buggy 4WD", "Buggy 2WD"] }), { type: "wait", reason: "finals", classes: ["Buggy 4WD", "Buggy 2WD"] });
assert.equal(getAutopilotAction(rows, { day: {}, now: start - 120000, prologueMs, finalsPending: ["Buggy 4WD"] }).type, "start", "a heat still to run goes first");
});
test("race days are stored one per date, and the board shows today or the next day still to race", () => {