fix(race-day): run again resets the current heat, not a stale copy; show the set time before the start (1.54.2)
This commit is contained in:
1 parent
8b625c3d64
commit
a8996c4195
7 files changed
+32
-4
No files matched your search
@@ -620,6 +620,11 @@ test("session timing handles untimed practice, countdown, and follow-up", () =>
|
||||
assert.equal(untimed.untimed, true);
|
||||
assert.equal(untimed.remainingMs, null);
|
||||
assert.equal(untimed.elapsedMs, 60000);
|
||||
|
||||
// A staggered heat not (yet / again) started shows the time set for it, not the release extension.
|
||||
const staggered = { type: "qualification", durationMin: 5, startMode: "staggered", staggerGapSec: 3, manualGridIds: ["a", "b", "c", "d", "e", "f"] };
|
||||
assert.equal(getSessionTiming(staggered, 5000, { getSessionTargetMs: getTarget }).remainingMs, 300000);
|
||||
assert.equal(getSessionTiming({ ...staggered, startedAt: 1000 }, 1000, { getSessionTargetMs: getTarget }).remainingMs, 315000, "the running clock keeps the extension");
|
||||
});
|
||||
|
||||
// Regression coverage for the user's report: a staggered-start qualifying heat with 4
|
||||
|
||||
Reference in new issue
Block a user