Add a daily tip to the Sokko TCG home that explains hidden mechanics
39 short tips cover packs, collection, trades, the daily card and Expeditions (getting cards, succeeding, groups, loot, improving cards, bag items). Each one has a topic that starts with its part of the game, such as "Expéditions · Réussir". Every figure comes from the current settings through tipValues(), so a tip follows an admin change. Expedition tips only show while Expeditions are open. The tip of the day is the same for everyone, "Astuce suivante" shows the next ones, and the card sits under the key figures so the home still fits a 1280 × 720 screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
17bec5d690
commit
e8ec657193
11 changed files with 167 additions and 2 deletions
|
|
@ -2123,6 +2123,18 @@ test("an administrator opens expeditions and a player leaves alone, follows the
|
|||
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 });
|
||||
// L'Accueil donne une astuce du jour, chiffres compris, puis les suivantes à la demande.
|
||||
await partner.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Accueil", exact: true }).click();
|
||||
const tip = partner.getByRole("region", { name: "Astuce du jour", exact: true });
|
||||
const tipText = tip.locator(".nebula-home-tip-text");
|
||||
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 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 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