Add Gachapus Prismana data and portrait
This commit is contained in:
parent
4cb6487f85
commit
ef7eba73db
4 changed files with 39 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ for (const width of [1280, 390]) {
|
|||
await expect(prismana).toHaveAttribute("aria-pressed", "false");
|
||||
await prismana.focus();
|
||||
await prismana.press("Space");
|
||||
await expect(cards(page)).toHaveCount(31);
|
||||
await expect(cards(page)).toHaveCount(32);
|
||||
await expect(prismana).toHaveText("Prismana");
|
||||
await expect(prismana).toHaveClass(/nds-filter-option/);
|
||||
const prismanaBadge = page.getByRole("button", { name: "Retirer le filtre Prismana", exact: true });
|
||||
|
|
@ -63,7 +63,7 @@ for (const width of [1280, 390]) {
|
|||
await expect(page.getByRole("heading", { name: "Aucun résultat" })).toBeVisible();
|
||||
await page.getByRole("button", { name: "Réinitialiser les filtres", exact: true }).click();
|
||||
await expect(prismana).toHaveAttribute("aria-pressed", "false");
|
||||
await expect(cards(page)).toHaveCount(252);
|
||||
await expect(cards(page)).toHaveCount(253);
|
||||
await expect(page.getByRole("button", { name: "Regrouper les variantes", exact: true })).toHaveAttribute("aria-pressed", "false");
|
||||
expect(await page.evaluate(() => globalThis.document.documentElement.scrollWidth <= globalThis.innerWidth)).toBe(true);
|
||||
});
|
||||
|
|
@ -128,7 +128,7 @@ test("catalogue, overview and deferred Aniimo loading preserve filters across na
|
|||
await expect(cover).toHaveCSS("height", "120px");
|
||||
await page.locator('a[href="#/games/aniimo/aniimos"]').click();
|
||||
await expect(cards(page)).toHaveCount(120);
|
||||
await expect(page.getByRole("status")).toHaveText("120 / 120 Aniimos · 252 / 252 variantes");
|
||||
await expect(page.getByRole("status")).toHaveText("120 / 120 Aniimos · 253 / 253 variantes");
|
||||
const switchLabel = page.getByRole("button", { name: "Regrouper les variantes", exact: true }).locator("span:not(.ui-icon)");
|
||||
expect(await switchLabel.evaluate((element) => element.scrollWidth <= element.clientWidth)).toBe(true);
|
||||
await page.getByRole("searchbox", { name: "Nom" }).fill("EMBERPUP");
|
||||
|
|
@ -177,7 +177,7 @@ test("tabs, flip, matching variants and reset remain independent", async ({ page
|
|||
await page.getByRole("button", { name: "Regrouper les variantes", exact: true }).click();
|
||||
await expect(cards(page)).toHaveCount(1);
|
||||
await page.getByRole("button", { name: "Réinitialiser les filtres", exact: true }).click();
|
||||
await expect(cards(page)).toHaveCount(252);
|
||||
await expect(cards(page)).toHaveCount(253);
|
||||
await expect(page.getByRole("button", { name: "Regrouper les variantes", exact: true })).toHaveAttribute("aria-pressed", "false");
|
||||
});
|
||||
|
||||
|
|
@ -480,7 +480,7 @@ for (const width of [768, 1440]) {
|
|||
await page.getByRole("button", { name: "Regrouper les variantes", exact: true }).click();
|
||||
await expect(cards(page)).toHaveCount(1);
|
||||
await page.getByRole("button", { name: "Réinitialiser les filtres", exact: true }).click();
|
||||
await expect(cards(page)).toHaveCount(252);
|
||||
await expect(cards(page)).toHaveCount(253);
|
||||
await expect(filterTrigger(page, "Régions")).toHaveAccessibleName("Régions");
|
||||
expect(await page.evaluate(() => globalThis.document.documentElement.scrollWidth <= globalThis.innerWidth)).toBe(true);
|
||||
await page.screenshot({ path: test.info().outputPath(`aniimo-regions-${width}.png`) });
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ test("Aniimo copies visible species or forms and round-trips through checklist i
|
|||
await expect.poll(() => page.evaluate(() => globalThis.navigator.clipboard.readText())).toBe("Loufeuteau:1");
|
||||
await page.getByRole("button", { name: "Regrouper les variantes", exact: true }).click();
|
||||
await expect(copy).toHaveAccessibleName(/toutes les variantes/);
|
||||
await expect(page.locator('[data-copy-target="true"]')).toHaveText("3 / 252 variantes");
|
||||
await expect(page.locator('[data-copy-target="true"]')).toHaveText("3 / 253 variantes");
|
||||
await copyVisibleResults(page);
|
||||
const text = await page.evaluate(() => globalThis.navigator.clipboard.readText());
|
||||
const imported = importChecklistText(text, { uid: (prefix) => `${prefix}-${Math.random()}`, normalizeChecklistData });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue