Reword bulk recycling and awakening texts, and list only the recycled rarities
The confirmation said "rareté Commun ou plus commune": it now names the recycled rarities ("Vos doublons communs, rares et épiques deviennent …") and its value list keeps only those rarities. The box no longer reads "0 doublon … +0 poussière", and the awakening texts say "6 doublons rares" instead of "doublons de rareté Rare". The history no longer shows "−undefined Éclats" for an awakening with duplicates of the collection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0533a8f766
commit
83ac709907
8 changed files with 69 additions and 26 deletions
|
|
@ -2076,11 +2076,11 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await expect(summary).toContainText("Éveil nécessaire pour atteindre la Puissance\u00a085");
|
||||
const awakening = sheet.getByRole("region", { name: "Éveil · Puissance\u00a085", exact: true });
|
||||
await expect(awakening.getByRole("button", { name: "Éveiller avec un doublon", exact: true })).toBeEnabled();
|
||||
await expect(awakening).toContainText(/Doublons de rareté Légendaire disponibles dans .+ : 1 sur 1\./);
|
||||
await expect(awakening).toContainText(/Doublons légendaires de .+ disponibles : 1 sur 1\./);
|
||||
await expect(sheet.getByRole("region", { name: "Améliorer", exact: true })).toHaveCount(0);
|
||||
await awakening.screenshot({ path: join(tmpdir(), "sokkog-cards-awakening.png") });
|
||||
// Les doublons de la collection se choisissent en cartes illustrées, comme à l'atelier ; rien n'est utilisé avant « Éveiller ».
|
||||
await awakening.getByRole("button", { name: "Choisir 1 doublon de la collection", exact: true }).click();
|
||||
await awakening.getByRole("button", { name: "Choisir 1 doublon légendaire", exact: true }).click();
|
||||
const awakeningPicker = partner.getByRole("dialog", { name: /^Éveil de Loup des Aurores/ });
|
||||
const awakenButton = awakeningPicker.getByRole("button", { name: "Éveiller", exact: true });
|
||||
await expect(awakeningPicker.getByRole("heading", { name: "Votre sélection (0/1)", exact: true })).toBeVisible();
|
||||
|
|
@ -2113,6 +2113,13 @@ 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");
|
||||
// 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.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();
|
||||
await partner.setViewportSize({ width: 1280, height: 720 });
|
||||
await partner.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Historique", exact: true }).click();
|
||||
await expect(partner.locator(".nebula-history-list li").filter({ hasText: "Expédition terminée" })).toContainText("★ · 2 h");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue