Show the automatic opening reserve as a badge on the Sokko TCG Packs menu entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8eb7f2e53e
commit
bffbe36cbe
3 changed files with 8 additions and 2 deletions
|
|
@ -241,7 +241,10 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
|
|||
expect(await page.locator(".nebula-home-stats").evaluate((element) => element.getBoundingClientRect().bottom <= element.ownerDocument.defaultView.innerHeight + 1)).toBe(true);
|
||||
|
||||
await expandSections(page, "Sections de Sokko TCG");
|
||||
await page.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Paquets", exact: true }).click();
|
||||
// L'entrée Paquets porte le nombre d'ouvertures de la réserve automatique, comme la Guilde ses quêtes.
|
||||
const packsLink = page.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: /^Paquets/ });
|
||||
await expect(packsLink.locator(".nds-badge")).toHaveText("3");
|
||||
await packsLink.click();
|
||||
await expect(page.getByRole("heading", { name: "Paquets permanents", exact: true })).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: "Paquets événements", exact: true })).toBeVisible();
|
||||
// Les ouvertures disponibles sont sous le menu, et non plus dans le titre de la page.
|
||||
|
|
@ -1662,7 +1665,7 @@ test("administrator navigates sections, manages mythic content and previews visu
|
|||
// Le joueur utilise le code partagé dans l'onglet Paquets et ouvre le paquet offert.
|
||||
await page.goto("/#/cards");
|
||||
await expandSections(page, "Sections de Sokko TCG");
|
||||
await page.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Paquets", exact: true }).click();
|
||||
await page.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: /^Paquets/ }).click();
|
||||
await page.getByRole("textbox", { name: "Utiliser un code" }).fill("e2e-live");
|
||||
await page.getByRole("button", { name: "Utiliser le code" }).click();
|
||||
await expect(page.locator(".nebula-redeem [role=\"status\"]")).toContainText("Code utilisé, vous recevez : Carte Paquet Astral");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue