Replace the rarity hint of the daily card with the theme of its name
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 20m47s
Validate and deploy Sokko G / deploy (push) Has been skipped

The rarity alone left 71 cards out of 246 and only helped to filter the album; the theme leaves 15 and helps every player. It opens after three wrong guesses and is no longer offered once a guess has found it. Games that had flipped the rarity get their hint back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-24 23:48:50 +01:00
parent ac6ae7df62
commit d5c2900eed
10 changed files with 89 additions and 31 deletions

View file

@ -2128,9 +2128,9 @@ test("a player finds the daily card with hints and copies the result", async ({
const close = await guesses.first().evaluate((row) => Boolean(row.querySelector(".nebula-daily-theme[data-same]")) || row.querySelectorAll(".nebula-daily-step[data-same]").length > 1);
await expect(page.locator(`.nebula-daily-steps li[data-result="${close ? "close" : "miss"}"]`)).toHaveCount(1);
// Un essai raté donne un indice, au choix parmi les trois ouverts ; il se retourne sur place et referme les autres.
// Un essai raté donne un indice, au choix parmi les deux ouverts ; il se retourne sur place et referme les autres.
await expect(hints).toContainText("1 indice à retourner, au choix.");
await expect(hints.getByRole("button", { disabled: false })).toHaveCount(3);
await expect(hints.getByRole("button", { disabled: false })).toHaveCount(2);
await hints.getByRole("button", { name: /^Dans votre album/ }).click();
await expect(hints.locator('.nebula-daily-hint[data-state="open"]')).toContainText(/Oui, elle y est|Non, elle vous manque/);
await expect(hints.getByRole("button", { disabled: false })).toHaveCount(0);