Show each daily tip's part of the game as a coloured badge
A tip now carries its part of the game (section) and an optional short topic. The part shows as a badge with one colour per part: Expéditions green, Paquets violet, Collection grey, Échanges et dons gold, Carte du jour orange. The topic sits beside it as the title, so "Expéditions · Améliorer ses cartes" becomes [Expéditions] Améliorer ses cartes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
99a438ff1d
commit
2e1d10086a
8 changed files with 65 additions and 52 deletions
|
|
@ -2141,11 +2141,12 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
await expect(tipText).not.toHaveText("");
|
||||
const firstTip = await tipText.textContent();
|
||||
expect(firstTip).not.toMatch(/[{}]/);
|
||||
await expect(tip.getByRole("heading", { level: 3 })).toHaveText(/^(Paquets|Collection|Échanges et dons|Carte du jour|Expéditions) ?/);
|
||||
await expect(tip.locator(".nds-badge")).toHaveText(/^(Paquets|Collection|Échanges et dons|Carte du jour|Expéditions)$/);
|
||||
await tip.screenshot({ path: join(tmpdir(), "sokkog-cards-daily-tip.png") });
|
||||
await tip.getByRole("button", { name: "Astuce suivante", exact: true }).click();
|
||||
await expect(tipText).not.toHaveText(firstTip);
|
||||
await expect(tipText).not.toHaveText(/[{}]/);
|
||||
await tip.screenshot({ path: join(tmpdir(), "sokkog-cards-daily-tip-next.png") });
|
||||
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");
|
||||
// Alertes Discord : désactivées tant que le joueur ne les active pas, une par une.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue