Rework the expedition screens: in-place return, illustrated bag and workshop, card sheet tabs and an engraving workshop
Expeditions - The journey keeps the destination landscape still while a sky scenery (clouds, floating isles, shards, sparkles) drifts behind the cards. - A returned expedition shows only what the player receives, in place and without a window; claiming it removes the card and confirms with a notice, and the page reloads by itself when an expedition comes back. - The Guild Keeper slots are gone: group requirements scale with the players. - Local development adds a 20-second test duration, a test player for groups and keeps the dev account stocked with every item. - The Wind Rose has no daily limit and is used from the destinations step. - The Guide Star opens a destination one level below the player's highest daily level, the Sky Chart one at that level; bonus destinations are badged with the item that opened them. Bag and workshop - The Watcher's bag is a grid of illustrated item cards, ordered from the destination items, with a short "Utiliser" button; the six missing item illustrations are added. - The workshop opens in a window with illustrated commons, spare counts on the cards, cancel without spending anything, and shows the crafted card with its description and power. - The engraving workshop picks a common first, then a tag from a chosen character card (in its tag colours) or from every tag, filtered by name and family; card lists filter by name, collection and stat. Card sheet - Two tabs: the card and its lore (default from the collection), and its improvement (default from the expeditions) with a summary of power, level, experience and stats. - "Répartition des statistiques" offers Par défaut, Personnalisé and profiles, previews the change in the summary, and a Parchemin d'oubli resets it to Personnalisé so the next choice is free again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7a0d19da75
commit
30413de036
48 changed files with 1506 additions and 433 deletions
|
|
@ -1941,15 +1941,18 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
expect(await partner.locator(".nebula-expeditions").evaluate((element) => element.scrollWidth - element.clientWidth)).toBe(0);
|
||||
await partner.setViewportSize({ width: 1280, height: 900 });
|
||||
|
||||
// Trois heures plus tard pour le serveur : l'expédition est revenue, son butin se récupère une fois et s'affiche dans une fenêtre.
|
||||
// Trois heures plus tard pour le serveur : l'expédition est revenue, son butin s'affiche sur place, sans rappel du résultat ; il se
|
||||
// récupère d'un clic, qui retire la carte et confirme par un avis.
|
||||
await setServerClock(3 * 3_600_000);
|
||||
await partner.reload();
|
||||
const report = partner.locator(".nebula-expedition-report").first();
|
||||
const report = partner.locator(".nebula-expedition-return").first();
|
||||
await expect(report).toContainText("De retour ! Le butin vous attend.");
|
||||
await expect(report.getByRole("definition")).toHaveCount(0);
|
||||
const loot = report.getByRole("region", { name: "Butin rapporté", exact: true });
|
||||
await expect(loot.getByRole("listitem").filter({ hasText: /^\+[\d\s]+ Éclats$/ })).toBeVisible();
|
||||
await report.getByRole("button", { name: "Récupérer le butin", exact: true }).click();
|
||||
const claimed = partner.getByRole("dialog", { name: "Butin rapporté" });
|
||||
await expect(claimed.locator(".nebula-expedition-rewards .nds-badge").filter({ hasText: /^\+[\d\s]+ Éclats$/ })).toBeVisible();
|
||||
await claimed.getByRole("button", { name: "Préparer la suivante", exact: true }).click();
|
||||
await expect(partner.locator(".nebula-expeditions > .nds-inline-notice[role=status]")).toHaveText("Butin récupéré : il est dans votre collection.");
|
||||
await expect(partner.locator(".nebula-expedition-return")).toHaveCount(0);
|
||||
await expect(partner.locator(".nebula-expeditions .nds-section-heading .nds-badge")).not.toHaveText("0 Éclats d’étoile");
|
||||
// L'expédition terminée passe au Journal.
|
||||
await partner.getByRole("tab", { name: "Journal (1)", exact: true }).click();
|
||||
|
|
@ -1999,14 +2002,20 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await expect(eclatsCount).toHaveValue(String(eclatsMaxAfter));
|
||||
await partner.goto("/#/cards/collection");
|
||||
await partner.getByRole("button", { name: "Voir Loup des Aurores", exact: true }).first().click();
|
||||
const progress = partner.getByRole("dialog").getByRole("region", { name: /^Expéditions · niveau 0 \/ 6$/ });
|
||||
await expect(progress).toContainText("Puissance 70");
|
||||
await expect(progress.getByRole("progressbar", { name: "Expérience de terrain" })).toHaveAttribute("aria-valuenow", "10");
|
||||
await expect(progress.getByRole("button", { name: /^Améliorer · 70 Éclats$/ })).toBeVisible();
|
||||
// Une légendaire (Puissance 70) a deux emplacements d'équipement ouverts ; le troisième s'ouvre au plafond.
|
||||
await expect(progress.getByRole("heading", { name: "Équipements", exact: true })).toBeVisible();
|
||||
await expect(progress.locator(".nebula-card-equipment-slots li")).toHaveCount(3);
|
||||
await expect(progress.locator(".nebula-card-equipment-slots li").nth(2)).toHaveText("Emplacement ouvert à Puissance 100");
|
||||
// La fiche résume la carte pour les Expéditions (Puissance, niveau, expérience, stats), puis l'amélioration et le plan ;
|
||||
// l'équipement se règle depuis les Expéditions.
|
||||
// Depuis la collection, la fiche s'ouvre sur « La carte » ; l'amélioration est dans son second onglet.
|
||||
const sheet = partner.getByRole("dialog");
|
||||
await expect(sheet.getByRole("tab", { name: "La carte", exact: true })).toHaveAttribute("aria-selected", "true");
|
||||
await expect(sheet.getByRole("tabpanel")).toContainText("Exemplaires possédés");
|
||||
await sheet.getByRole("tab", { name: "Amélioration", exact: true }).click();
|
||||
const summary = sheet.getByRole("region", { name: "Récapitulatif pour les Expéditions", exact: true });
|
||||
await expect(summary).toContainText("Niveau 0 / 6");
|
||||
await expect(summary.locator(".nebula-card-summary-power strong")).toHaveText("70");
|
||||
await expect(summary.getByRole("progressbar", { name: "Expérience", exact: true })).toHaveAttribute("aria-valuenow", "10");
|
||||
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);
|
||||
await partner.keyboard.press("Escape");
|
||||
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