feat(race-setup): group a race's sessions per step, fold run steps, rare actions in a menu (1.53.0)

This commit is contained in:
larssand committed 2026-11-02 08:26:00 +01:00
1 parent b23410c190
commit 73e3d1ff75
12 files changed
+147 -25

No files matched your search

+7
View File
@@ -120,4 +120,11 @@ export async function runRaceSetupSmoke({ evaluate, navigate, fill, savedState,
assert.ok(await evaluate(`[...document.querySelectorAll("[data-event-row]")].some((row) => row.hidden)`), "other races are filtered out");
}
console.log("PASS Race Setup groups races into today, upcoming and a folded Done list, with search");
// Manage: sessions grouped per step; print/export/delete live in the ⋯ menu.
await click("event-manage-" + raceId);
await waitFor(async () => Boolean(await evaluate(`document.querySelector('details[data-session-group="qual_1"]')`)), "qualifying round 1 is its own group");
assert.equal(await evaluate(`document.querySelector('details[data-session-group="qual_1"]').open`), true, "a step not yet run is open");
assert.equal(await evaluate(`Boolean(document.getElementById("session-delete-${q11.id}").closest("details.row-menu"))`), true, "delete is in the ⋯ menu");
console.log("PASS Manage groups sessions per step with the rarer actions in a ⋯ menu");
}