sokko-g/e2e/home.spec.js
Shinuwa fef7735a1d
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
Split randomizer views and align NDS toolbox vocabulary
2026-09-01 19:47:22 +02:00

15 lines
764 B
JavaScript

// Rôle : vérifie en navigateur que la home charge les zones principales.
import { expect, test } from "@playwright/test";
test("home page renders the application shell", async ({ page }) => {
await page.goto("/");
await expect(page.locator(".app-shell")).toBeVisible();
const main = page.getByRole("main");
await expect(main).toBeVisible();
await expect(main.getByRole("heading", { name: "Sokko G", exact: true })).toBeVisible();
await expect(main.getByRole("link", { name: "Voir les toolboxes", exact: true })).toBeVisible();
await expect(main.getByRole("link", { name: "Voir les jeux", exact: true })).toBeVisible();
await expect(page.locator(".home-stats")).toBeVisible();
await expect(page.locator(".origin-section")).toBeVisible();
});