feat(qualifying): default to staggered start with most laps in time and best-3-laps seeding (1.46.0)
This commit is contained in:
1 parent
b57e15b428
commit
8d27072567
9 files changed
+35
-24
No files matched your search
@@ -61,7 +61,7 @@ export async function runSeriesSmoke({ evaluate, navigate, savedState, waitFor,
|
||||
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");
|
||||
assert.deepEqual(seedPractices.map((session) => [session.durationMin, session.seedBestLapCount, session.seedMethod, session.driverIds.length]), [[5, 3, "best_sum", 0], [5, 3, "best_sum", 0]], "every round starts with a seeding practice that follows the round's drivers");
|
||||
assert.equal(dialogs.at(-1)?.message, "2 races created. They are listed below and under Race Setup.", "creating says how many races were made");
|
||||
await evaluate(`(() => { const form = document.getElementById("seriesCreateEvents"); form.elements.dates.value = "2026-11-01"; form.requestSubmit(); })()`);
|
||||
await waitFor(async () => dialogs.at(-1)?.message.startsWith("No new races were created"), "clicking again for an existing date says so");
|
||||
|
||||
Reference in new issue
Block a user