fix(race-setup): wizard builds qualifying as Q/H heats; guide gets race day step by step (1.58.0)
This commit is contained in:
1 parent
e1ca72db51
commit
afb8829b16
9 files changed
+77
-36
No files matched your search
@@ -303,20 +303,10 @@ test("race wizard creates configured practice, qualifying, and endurance session
|
||||
{ t: (key) => key, buildRaceSession }
|
||||
);
|
||||
|
||||
assert.equal(sessions.length, 6);
|
||||
assert.deepEqual(sessions.map((session) => session.type), [
|
||||
"practice",
|
||||
"practice",
|
||||
"qualification",
|
||||
"qualification",
|
||||
"qualification",
|
||||
"team_race",
|
||||
]);
|
||||
assert.equal(sessions[2].durationMin, 6);
|
||||
assert.equal(sessions[2].seedMethod, "consecutive");
|
||||
assert.equal(sessions[2].followUpSec, 20);
|
||||
assert.equal(sessions[5].durationMin, 180);
|
||||
assert.deepEqual(sessions[5].driverIds, ["driver_1", "driver_2"]);
|
||||
// Qualifying heats come from generateQualifyingForRace (split per heat), not from here.
|
||||
assert.deepEqual(sessions.map((session) => session.type), ["practice", "practice", "team_race"]);
|
||||
assert.equal(sessions[2].durationMin, 180);
|
||||
assert.deepEqual(sessions[2].driverIds, ["driver_1", "driver_2"]);
|
||||
});
|
||||
|
||||
test("qualifying generation splits seeded drivers into every configured round", () => {
|
||||
|
||||
Reference in new issue
Block a user