Catalogue des WOD de référence (lot 4d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
35a826ddf0
commit
79ce7b34ac
@@ -449,6 +449,22 @@ function check(scheme, cond, msg) {
|
||||
await go("#/analyses");
|
||||
ok(await page.getByText(`Record ${wodTime} · Scaled`).isVisible(), "analyses : record du WOD");
|
||||
|
||||
// ---- WOD de référence (lot 4d) : catalogue, fiche, « Faire aujourd'hui » ----------
|
||||
await go("#/");
|
||||
await page.getByRole("link", { name: /^WOD/ }).click();
|
||||
await settle();
|
||||
ok(await page.locator("h1").textContent() === "Références" && await page.getByRole("link", { name: /Fran · For Time/ }).isVisible(), "catalogue des WOD de référence");
|
||||
await page.getByRole("link", { name: /Cindy · AMRAP 20 min/ }).click();
|
||||
await settle();
|
||||
ok(page.url().endsWith("#/wod/cindy") && await page.getByText("Scaled : ").isVisible(), "fiche de Cindy, avec sa variante scaled");
|
||||
await shot("24-wod-reference", true);
|
||||
await button("Faire aujourd'hui").click();
|
||||
await settle();
|
||||
ok(/#\/seance\/J\d+$/.test(page.url()) && await page.locator(".wod-format__label").textContent() === "AMRAP 20 min", "Faire aujourd'hui : la séance WOD s'ouvre");
|
||||
await go("#/wod/cindy");
|
||||
ok(await button("Reprendre ce WOD").isVisible(), "pas de doublon : le WOD en attente est repris");
|
||||
await page.evaluate(() => localStorage.removeItem("ia-fit.draft"));
|
||||
|
||||
// ---- réinitialisation --------------------------------------------------------------
|
||||
await go("#/donnees");
|
||||
await button("Tout effacer").click();
|
||||
|
||||
Reference in New Issue
Block a user