Clarify the guide checklist action
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s

This commit is contained in:
Shinuwa 2026-10-05 23:17:04 +02:00
parent 0fc18cd8b9
commit a921c9ef02
6 changed files with 11 additions and 9 deletions

View file

@ -137,7 +137,8 @@ test("Aniimo copies visible species or forms and round-trips through checklist i
await expect(page.locator(".guide-checklist-controls")).toHaveCount(0);
const copy = page.locator(".results-copy-button");
await expect(copy).toHaveAccessibleName(/sans les variantes/);
await expect(copy).toContainText("Utiliser les résultats");
await expect(copy).toContainText("Résultats vers checklist");
await expect(copy.locator(".ui-icon-checklist")).toBeVisible();
await expect(page.locator('[data-copy-target="true"]')).toHaveText("1 / 88 Aniimos");
await copyVisibleResults(page);
await expect.poll(() => page.evaluate(() => globalThis.navigator.clipboard.readText())).toBe("Loufeuteau:1");
@ -321,7 +322,8 @@ for (const [gameId, category, cardClass, dataPath, dataKey, checklistTitle] of [
await page.goto(`/#/games/${gameId}/${category}`);
await expect(page.locator(cardClass).first()).toBeVisible();
const resultsAction = page.locator(".results-copy-button");
await expect(resultsAction).toContainText("Utiliser les résultats");
await expect(resultsAction).toContainText("Résultats vers checklist");
await expect(resultsAction.locator(".ui-icon-checklist")).toBeVisible();
await resultsAction.click();
const resultsDialog = page.getByRole("dialog", { name: "Utiliser les résultats visibles" });
await expect(resultsDialog.getByText(checklistTitle, { exact: true })).toBeVisible();