Add group Expeditions with a Guild board to Sokko TCG
- A player opens a group with one card and a chosen role; others join from the board with a free role, and the creator launches it once enough players are in. - At departure the Veilleur de la Guilde holds empty places without a role, each member rolls their own loot multiplied by the number of players, and distinct collections add a cohesion bonus. - An unlaunched group departs on its own at the end of recruitment with enough players, or dissolves and tells its members; leaving, dissolving and deleted accounts free cards or forfeit shares. - The Guild tile flags joinable groups; Administration › Guilde tunes group places, players, stars, recruitment, loot multipliers, keeper stats, cohesion and the score bonus cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8bb1d53d70
commit
6b7605d04e
24 changed files with 858 additions and 99 deletions
|
|
@ -1884,6 +1884,22 @@ test("an administrator opens expeditions and a player sends a team, then claims
|
|||
await expect(report).toContainText("Butin récupéré.");
|
||||
await expect(report.locator(".nebula-expedition-rewards .nds-badge").filter({ hasText: /^\+[\d\s]+ Éclats$/ })).toBeVisible();
|
||||
await expect(partner.locator(".nebula-expeditions .nds-section-heading .nds-badge")).not.toHaveText("0 Éclats d’étoile");
|
||||
// En groupe : le partenaire ouvre un groupe, qui attend un second joueur sur le tableau, puis le dissout.
|
||||
await partner.getByRole("group", { name: "Mode" }).getByRole("button", { name: "En groupe", exact: true }).click();
|
||||
await partner.getByRole("region", { name: "3. Équipe" }).getByRole("button", { name: /^Placer Loup des Aurores en / }).click();
|
||||
await expect(partner.getByRole("region", { name: "4. Aperçu" })).toContainText(/Butin attendu : environ/);
|
||||
await partner.getByRole("button", { name: "Ouvrir le groupe", exact: true }).click();
|
||||
await expect(partner.getByRole("status").filter({ hasText: "Groupe ouvert !" })).toBeVisible();
|
||||
const board = partner.getByRole("region", { name: "Tableau des groupes" });
|
||||
const groupCard = board.locator(".nebula-expedition-group");
|
||||
await expect(groupCard).toHaveCount(1);
|
||||
await expect(groupCard).toContainText("ouvert par vous");
|
||||
await expect(groupCard.locator(".nebula-expedition-group-free")).toHaveCount(3);
|
||||
await expect(groupCard.getByRole("button", { name: "Lancer l’expédition", exact: true })).toBeDisabled();
|
||||
await expect(groupCard).toContainText("Il faut au moins 2 joueurs pour partir.");
|
||||
await groupCard.getByRole("button", { name: "Dissoudre le groupe", exact: true }).click();
|
||||
await expect(groupCard).toHaveCount(0);
|
||||
await expect(board).toContainText("Aucun groupe ouvert pour le moment");
|
||||
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");
|
||||
await partnerContext.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue