feat(ux): run sessions from Race Day with quick actions
Race Day gets Start practice, New track layout and Create race, a session picker, only the buttons that apply, and New practice day (replaces Reset data on Timing; laps stay in the training stats). Timing is for following and links to Race Day. The Dashboard shows the three common tasks first. Guide, READMEs, screenshot and the "Run a session" video follow the flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3a6789f42f
commit
c4df90706a
23 files changed
+344
-111
No files matched your search
@@ -39,7 +39,7 @@ export async function runSuspectLapsSmoke({ evaluate, navigate, savedState, wait
|
||||
});
|
||||
|
||||
try {
|
||||
await navigate("timing", "resetSession");
|
||||
await navigate("timing", "activeSessionSelect");
|
||||
await waitFor(async () => evaluate('document.getElementById("connectionBadge")?.classList.contains("badge-online")'), "decoder connected");
|
||||
decoder.sendPassing("8330001", lastTs + 14000);
|
||||
await waitFor(async () => (await results())?.passings?.length === 7, "the short lap arrived");
|
||||
@@ -58,11 +58,11 @@ export async function runSuspectLapsSmoke({ evaluate, navigate, savedState, wait
|
||||
assert.equal(await evaluate(`[...document.querySelectorAll(".suspect-flag")].length > 0`), true, "⚠ in the overlay");
|
||||
console.log("PASS the overlay marks the driver with a suspect lap");
|
||||
|
||||
await navigate("race_day", "raceDayStart");
|
||||
await navigate("race_day", "raceDaySessionSelect");
|
||||
await waitFor(async () => Boolean(await evaluate(`document.querySelector('#suspectLapsPanel [data-lap-action="approve"]')`)), "the same panel on Race Day");
|
||||
console.log("PASS Race Day shows the suspect lap with Approve / Remove");
|
||||
|
||||
await navigate("timing", "resetSession");
|
||||
await navigate("timing", "activeSessionSelect");
|
||||
await waitFor(async () => Boolean(await evaluate(`document.querySelector('#suspectLapsPanel [data-lap-action="remove"]')`)), "Remove button");
|
||||
await evaluate(`document.querySelector('#suspectLapsPanel [data-lap-action="remove"]').click()`);
|
||||
await waitFor(async () => (await results())?.passings?.at(-1)?.validLap === false, "the short lap removed");
|
||||
|
||||
Reference in new issue
Block a user