feat(series): ÖRC Winter format, seeding practice and heat order when creating rounds (1.43.0)
This commit is contained in:
1 parent
40c3737925
commit
74dbbf6ae0
10 files changed
+173
-11
No files matched your search
@@ -59,6 +59,9 @@ export async function runSeriesSmoke({ evaluate, navigate, savedState, waitFor,
|
||||
const rounds = state.series.find((series) => series.id === saved.id).eventIds.map((id) => state.events.find((event) => event.id === id));
|
||||
assert.deepEqual(rounds.map((event) => [event.name, event.date, event.classId]).sort(), [["SR Winter Cup #1 SR 2WD", "2026-11-01", "sr_2wd"], ["SR Winter Cup #2 SR 2WD", "2026-11-15", "sr_2wd"]]);
|
||||
assert.deepEqual(rounds.map((event) => [event.raceConfig.qualifyingRounds, event.raceConfig.finalLegs, event.raceConfig.carsPerHeat]), [[2, 1, 2], [2, 1, 2]], "the chosen format is applied to every new round");
|
||||
assert.deepEqual(rounds.map((event) => [event.raceConfig.qualifyingScoring, event.raceConfig.countedQualRounds, event.raceConfig.heatOrder]), [["best", 2, "fastest_last"], ["best", 2, "fastest_last"]], "ÖRC Winter is the default format, fastest heat last");
|
||||
const seedPractices = state.sessions.filter((session) => rounds.some((event) => event.id === session.eventId) && session.type === "practice");
|
||||
assert.deepEqual(seedPractices.map((session) => [session.durationMin, session.seedBestLapCount, session.seedMethod, session.driverIds.length]), [[5, 3, "consecutive", 0], [5, 3, "consecutive", 0]], "every round starts with a seeding practice that follows the round's drivers");
|
||||
console.log("PASS a series is created with club, class and count rule, and its rounds are created from dates");
|
||||
|
||||
// The series is the hub for each round: drivers, a late entry, copy to the next round,
|
||||
|
||||
Reference in new issue
Block a user