Make Sokko TCG's Watcher's Bag compact, with items used elsewhere shown small
- Only the engraving burin and the workshop plan (while the workshop is open) keep a card in the bag, now compact: art on the left, name, help and action on the right. - Every other item (destination items, wind rose, anchor, balm, oblivion scroll) is shown small on the same row, with what it does and where to use it in a tooltip. - The oblivion card picker is gone: the scroll is used from a card's sheet. - The bag's styles move to their own sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9d2c561fc6
commit
e8fe27a90f
10 changed files with 76 additions and 78 deletions
|
|
@ -2381,11 +2381,24 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
const groupDatabase = new DatabaseSync(groupDatabasePath);
|
||||
groupDatabase.prepare(`INSERT INTO collection_cards(player_id, edition_id, quantity, acquired_at) SELECT id, 'crimson-moon-kitsune-standard', 1, 0 FROM players WHERE discord_id = 'dev-admin'
|
||||
ON CONFLICT(player_id, edition_id) DO NOTHING`).run();
|
||||
groupDatabase.prepare("INSERT INTO player_items(player_id, item_id, quantity) SELECT id, 'guideStar', 1 FROM players WHERE discord_id = 'dev-admin'").run();
|
||||
for (const item of ["guideStar", "anchor", "engraving"]) groupDatabase.prepare("INSERT INTO player_items(player_id, item_id, quantity) SELECT id, ?, 1 FROM players WHERE discord_id = 'dev-admin'").run(item);
|
||||
groupDatabase.close();
|
||||
await page.goto("/#/cards/expeditions");
|
||||
// Première visite de ce joueur : la Guilde lui offre d'abord sa carte de destination de départ.
|
||||
await page.getByRole("dialog").getByRole("button", { name: "Préparer mon expédition", exact: true }).click();
|
||||
// Sac du Veilleur : le Burin s'utilise d'ici (une carte compacte, qui ouvre l'atelier de gravure) ; l'Étoile guide et l'Ancre
|
||||
// s'utilisent ailleurs, en petit, sans bouton.
|
||||
const ownBag = page.getByRole("region", { name: "Sac du Veilleur", exact: true });
|
||||
const elsewhere = ownBag.getByRole("list", { name: "Objets qui s’utilisent ailleurs", exact: true });
|
||||
await expect(elsewhere.getByRole("listitem")).toHaveCount(2);
|
||||
await expect(elsewhere).toContainText("Étoile guide");
|
||||
await expect(ownBag.getByRole("button", { name: /^Utiliser/ })).toHaveCount(1);
|
||||
await ownBag.screenshot({ path: join(tmpdir(), "sokkog-cards-bag.png") });
|
||||
await ownBag.getByRole("button", { name: "Utiliser : Burin de graveur", exact: true }).click();
|
||||
const engraveDialog = page.getByRole("dialog", { name: "Atelier de gravure" });
|
||||
await expect(engraveDialog).toBeVisible();
|
||||
await engraveDialog.getByRole("button", { name: "Annuler", exact: true }).click();
|
||||
await expect(engraveDialog).toHaveCount(0);
|
||||
// Une Étoile guide dans le Sac : un cadre pointillé sous les destinations propose de l'utiliser ; un clic ajoute la destination.
|
||||
const offers = page.getByRole("list", { name: "Destinations à ajouter avec vos objets", exact: true });
|
||||
const guideStarOffer = offers.getByRole("button", { name: /^Utiliser une Étoile guide pour ajouter une destination/ });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue