Format WOD étendu : EMOM « tout à chaque intervalle », repos entre les tours ; Chelsea et Barbara (4e)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
db0b6f954c
commit
7678e580b7
@@ -570,6 +570,27 @@ function check(scheme, cond, msg) {
|
||||
ok(await button("Reprendre ce WOD").isVisible(), "pas de doublon : le WOD en attente est repris");
|
||||
await page.evaluate(() => localStorage.removeItem("ia-fit.draft"));
|
||||
|
||||
// ---- format étendu (lot 4e) : Barbara, repos entre les tours ; Chelsea, tout à chaque minute ----
|
||||
await go("#/wod/chelsea");
|
||||
ok(await page.locator(".wod-format__label").textContent() === "EMOM 30 min · tout à chaque intervalle", "Chelsea : tout à chaque intervalle");
|
||||
await go("#/wod/barbara");
|
||||
await button("Faire aujourd'hui").click();
|
||||
await settle();
|
||||
ok(await page.locator(".wod-format__label").textContent() === "5 tours · repos 3:00", "Barbara : la séance s'ouvre");
|
||||
await button("Démarrer").click();
|
||||
await page.clock.fastForward(5000 + 30000);
|
||||
await page.waitForTimeout(300);
|
||||
ok(await page.locator(".wod-clock__phase").textContent() === "Tour 1/5", "Barbara : tour 1");
|
||||
await button("Tour fini").click();
|
||||
await page.waitForTimeout(300);
|
||||
ok(await page.locator(".wod-clock__phase").textContent() === "Repos · puis tour 2/5" && /^[23]:\d\d$/.test(await page.locator(".wod-clock__time").textContent() ?? ""), "Barbara : repos de 3 min, le chrono descend");
|
||||
await shot("24b-barbara");
|
||||
await page.clock.fastForward(181000);
|
||||
await page.waitForTimeout(300);
|
||||
ok(await page.locator(".wod-clock__phase").textContent() === "Tour 2/5", "Barbara : tour 2 après le repos");
|
||||
ok(/^0:3\d$/.test(await page.locator(".wod-clock__time").textContent() ?? ""), "Barbara : le repos ne compte pas dans le temps");
|
||||
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