Shorten the upgrade tip and move the recycling reminder into the confirmation
The upgrade tip now reads "Palier d'Éveil à Puissance 85. Améliorez de préférence avec les Éclats : vos doublons y serviront.", which no longer contradicts the duplicate button next to it. The recycling reminder leaves the narrow box for the confirmation, as a warning notice naming the rarities that also awaken cards; it shows only when the selection goes past commons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d863964a5d
commit
5197867dd4
3 changed files with 7 additions and 5 deletions
|
|
@ -2060,7 +2060,7 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
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);
|
||||
// Une légendaire franchit ses paliers d'Éveil à 85 puis 100 : l'amélioration annonce le prochain.
|
||||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toContainText("Prochain palier d’Éveil : Puissance\u00a085. Il ne se franchit qu’avec des doublons : montez les niveaux avec les Éclats et l’expérience, et gardez vos doublons pour les Éveils.");
|
||||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toContainText("Palier d’Éveil à Puissance\u00a085. Améliorez de préférence avec les Éclats : vos doublons y serviront.");
|
||||
await sheet.getByRole("region", { name: "Améliorer", exact: true }).screenshot({ path: join(tmpdir(), "sokkog-cards-upgrade-tip.png") });
|
||||
await partner.keyboard.press("Escape");
|
||||
// Devant le palier (Puissance 80), l'Éveil remplace l'amélioration aux Éclats : le joueur a un doublon du Loup, qui l'éveillerait.
|
||||
|
|
@ -2114,11 +2114,11 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await partner.screenshot({ path: join(tmpdir(), "sokkog-cards-recycle-rarity.png") });
|
||||
await recycleBox.getByRole("option", { name: "Légendaire", exact: true }).click();
|
||||
await expect(rarityTrigger).toHaveText("Légendaire");
|
||||
await expect(recycleBox).toContainText("Les doublons rares, épiques et légendaires servent aussi à éveiller vos cartes");
|
||||
// La confirmation nomme les raretés recyclées et ne montre que leur valeur.
|
||||
await recycleBox.getByRole("button", { name: "Recycler", exact: true }).click();
|
||||
const recycleConfirm = partner.getByRole("dialog", { name: /^Recycler \d+ doublons? \?$/ });
|
||||
await expect(recycleConfirm).toContainText(/Vos doublons communs, rares, épiques et légendaires deviennent \d+ poussières? d’étoiles\./);
|
||||
await expect(recycleConfirm.locator(".nds-inline-notice[data-variant=warning]")).toHaveText("Vos doublons rares, épiques et légendaires servent aussi à éveiller vos cartes : gardez ceux dont vous aurez besoin.");
|
||||
await expect(recycleConfirm.getByRole("list", { name: "Poussière gagnée par doublon", exact: true }).getByRole("listitem")).toHaveText([/^Commun/, /^Rare/, /^Épique/, /^Légendaire/]);
|
||||
await recycleConfirm.screenshot({ path: join(tmpdir(), "sokkog-cards-recycle-confirm.png") });
|
||||
await recycleConfirm.getByRole("button", { name: "Annuler", exact: true }).click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue