Add Playwright visual smoke test
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s

This commit is contained in:
Shinuwa 2026-08-22 23:42:37 +02:00
parent 59fdcb0927
commit 5c8148c905
6 changed files with 107 additions and 1 deletions

13
e2e/home.spec.js Normal file
View file

@ -0,0 +1,13 @@
// Rôle : vérifie en navigateur que le shell principal se charge pour les diagnostics visuels.
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();
await expect(page.locator("main")).toBeVisible();
await expect(page).toHaveScreenshot("home.png", {
fullPage: true,
maxDiffPixelRatio: 0.03
});
});