Hide closed permanent Sokko TCG collections until the player owns one of their cards
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m47s
Validate and deploy Sokko G / deploy (push) Successful in 12s

This commit is contained in:
Shinuwa 2026-11-13 10:26:21 +01:00
parent 70233312d3
commit ecc2040352
3 changed files with 9 additions and 9 deletions

View file

@ -363,11 +363,11 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
await expect(page.getByRole("heading", { name: /Album/ })).toHaveCount(0);
await expect(page.getByRole("heading", { name: "Ma collection", exact: true, level: 2 })).toBeVisible();
// L'album sépare les cartes par collection, dans l'ordre du catalogue ; un filtre masque les groupes vides.
await expect(page.locator(".nebula-album-group > h3")).toHaveText([/^La Nébuleuse Originelle \d+ \/ \d+$/, /^Genèse Astrale \d+ \/ \d+$/, /^Poussières d'étoiles \d+ \/ \d+$/, /^L'Arcade des Rêves \d+ \/ \d+$/]);
await expect(page.locator(".nebula-album-group > h3")).toHaveText([/^La Nébuleuse Originelle \d+ \/ \d+$/, /^Genèse Astrale \d+ \/ \d+$/, /^Poussières d'étoiles \d+ \/ \d+$/]);
// Le titre porte le badge des éditions différentes possédées et une fine barre de progression.
const nebulaBadge = page.locator(".nebula-album-group > h3 .nds-badge").first();
await expect(page.locator(".nebula-progress-tile")).toHaveCount(0);
await expect(page.locator(".nebula-album-group > .nds-progress")).toHaveCount(4);
await expect(page.locator(".nebula-album-group > .nds-progress")).toHaveCount(3);
await expect(nebulaBadge).toHaveText(/^[1-9]\d* \/ \d+$/);
await expect(page.locator(".nebula-album-group", { hasText: "Genèse Astrale" }).locator(".nebula-album-entry").first()).toBeVisible();
// Les filtres reprennent les menus à cases à cocher des pages de jeux, avec leurs badges actifs.
@ -389,7 +389,7 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
await page.getByRole("button", { name: "Réinitialiser les filtres" }).click();
await expect(page.getByPlaceholder("Rechercher...").first()).toHaveValue("");
await expect(albumFilters.locator(".nds-active-filter")).toHaveCount(0);
await expect(page.locator(".nebula-album-group > h3")).toHaveCount(4);
await expect(page.locator(".nebula-album-group > h3")).toHaveCount(3);
// Au défilement, le menu collant reste sous le header au lieu de passer derrière.
await page.evaluate(() => globalThis.scrollTo(0, 900));
await expect.poll(() => page.evaluate(() => globalThis.scrollY)).toBeGreaterThan(0);