Add ARCHITECTURE.md (layers, flows, folder map, glossary), CONTRIBUTING.md (setup and step-by-step recipes) and a README in each main folder, with an index of docs/. Convert the 511 JavaScript headers from "// Rôle :" lines to JSDoc @file blocks, define a three-level header template in website/AGENTS.md and check the header in tests/file-headers.test.mjs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
590 B
JavaScript
13 lines
590 B
JavaScript
/**
|
|
* @file 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");
|
|
});
|