Merge the Sokko TCG v1 into main
Bring in the server-backed card game and its administration, disabled in production until /etc/sokko-g/cards.env is configured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
a6cddbaa6a
202 changed files with 13344 additions and 75 deletions
1551
e2e/nebula-cards.spec.js
Normal file
1551
e2e/nebula-cards.spec.js
Normal file
File diff suppressed because it is too large
Load diff
10
e2e/production/cards-disabled.spec.js
Normal file
10
e2e/production/cards-disabled.spec.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// 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");
|
||||
});
|
||||
|
|
@ -90,7 +90,8 @@ for (const width of [1920, 1280, 1025, 1024, 960, 768]) {
|
|||
await expect(page.locator(".sidebar-note")).toHaveCSS("display", "block");
|
||||
await expect(page.locator(".sidebar-storage-actions")).toHaveCSS("flex-direction", responsiveCompact ? "column" : "row");
|
||||
await expect(page.locator(".sidebar-action-button")).toHaveCount(2);
|
||||
await expect(page.locator(".nav-item")).toHaveCount(3);
|
||||
await expect(page.locator(".nav-item")).toHaveCount(4);
|
||||
await expect(page.getByRole("link", { name: /Sokko TCG/ })).toBeVisible();
|
||||
await expect(page.locator(".nav-item strong").first()).toHaveCSS("display", responsiveCompact ? "none" : "block");
|
||||
const brand = page.locator(".brand");
|
||||
const brandMark = page.locator(".brand-mark");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue