Improve compact desktop usability and action guidance
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
0ac1a0974e
commit
0fc18cd8b9
24 changed files with 325 additions and 90 deletions
|
|
@ -137,6 +137,7 @@ 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(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");
|
||||
|
|
@ -319,7 +320,9 @@ for (const [gameId, category, cardClass, dataPath, dataKey, checklistTitle] of [
|
|||
await seed(page, gameId, { progress: [row(label, 1)] });
|
||||
await page.goto(`/#/games/${gameId}/${category}`);
|
||||
await expect(page.locator(cardClass).first()).toBeVisible();
|
||||
await page.locator(".results-copy-button").click();
|
||||
const resultsAction = page.locator(".results-copy-button");
|
||||
await expect(resultsAction).toContainText("Utiliser les résultats");
|
||||
await resultsAction.click();
|
||||
const resultsDialog = page.getByRole("dialog", { name: "Utiliser les résultats visibles" });
|
||||
await expect(resultsDialog.getByText(checklistTitle, { exact: true })).toBeVisible();
|
||||
await resultsDialog.getByRole("button", { name: "Fermer", exact: true }).click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue