Add Playwright visual smoke test
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
59fdcb0927
commit
5c8148c905
6 changed files with 107 additions and 1 deletions
13
e2e/home.spec.js
Normal file
13
e2e/home.spec.js
Normal 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
|
||||
});
|
||||
});
|
||||
BIN
e2e/home.spec.js-snapshots/home-chromium-linux.png
Normal file
BIN
e2e/home.spec.js-snapshots/home-chromium-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Loading…
Add table
Add a link
Reference in a new issue