The sidebar and About page advertised the game even when disabled. The admin rates also warned that the shop pack had no drawable common, rare or epic card although it draws them from the other collections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
583 B
JavaScript
10 lines
583 B
JavaScript
// Rôle : vérifie qu'un build dont Sokko TCG est désactivé n'annonce le jeu nulle part.
|
|
import { expect, test } from "@playwright/test";
|
|
|
|
test("the site does not mention Sokko TCG while the game is disabled", async ({ page }) => {
|
|
await page.goto("/#/about");
|
|
await expect(page.locator(".about-page .nds-page-hero h1")).toBeVisible();
|
|
await expect(page.locator(".nav-icon-cards")).toHaveCount(0);
|
|
await expect(page.locator(".sidebar-note")).toContainText("Données stockées dans ce navigateur.");
|
|
await expect(page.locator("body")).not.toContainText("Sokko TCG");
|
|
});
|