Show available Éclats and duplicates under the card on the upgrade tab
Some checks failed
Validate and deploy Sokko G / deploy (push) Blocked by required conditions
Validate and deploy Sokko G / validate (push) Has been cancelled

Two tiles under the card give the player's Éclats and the free duplicates of
the card. They replace the Éclats count in the upgrade help text and are
hidden once the card reaches the maximum power.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-24 11:32:01 +01:00
parent f73ea72d64
commit 268e9faa88
6 changed files with 39 additions and 5 deletions

View file

@ -2395,6 +2395,12 @@ test("an administrator opens expeditions and a player leaves alone, follows the
await expect(summary.getByRole("list", { name: "Stats", exact: true }).getByRole("listitem")).toHaveCount(4);
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true }).getByRole("button", { name: /^Améliorer · 70 Éclats$/ })).toBeVisible();
await expect(sheet.getByRole("heading", { name: "Équipements", exact: true })).toHaveCount(0);
// Les Éclats et les doublons libres se lisent sous la carte, seulement dans « Amélioration ».
const resources = sheet.getByRole("list", { name: "Vos ressources pour améliorer cette carte", exact: true });
await expect(resources.getByRole("listitem")).toHaveCount(2);
await expect(resources.getByRole("listitem").filter({ hasText: "Éclats" }).locator("strong")).toHaveText(/^\d+$/);
await expect(resources.getByRole("listitem").filter({ hasText: "Doublons" }).locator("strong")).toHaveText(/^\d+$/);
await sheet.screenshot({ path: join(tmpdir(), "sokkog-cards-upgrade-resources.png") });
// Une légendaire franchit ses paliers d'Éveil à 85 puis 100 : l'amélioration annonce le prochain et les doublons à garder.
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toContainText("Améliorez de préférence avec les Éclats : vos doublons pourront servir à l’Éveil de votre carte (prochain Éveil : Puissance\u00a085). Gardez 2 doublons de cette carte pour faire tous les Éveils restants.");
await sheet.getByRole("region", { name: "Améliorer", exact: true }).screenshot({ path: join(tmpdir(), "sokkog-cards-upgrade-tip.png") });