✅ Tests Playwright (20 parcours utilisateur) + suite backend renforcee (56) + DOCUMENTATION.md + nettoyage (settings_store, react-router)

This commit is contained in:
Orionis312050 committed 2026-10-13 23:48:46 +00:00
1 parent 231a1f2599
commit adab24ca61
20 files changed
+1315 -88

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import {expect, test} from "@playwright/test";
import {ligneFilm, login} from "./helpers";
test("l'interface reste utilisable sur mobile", async ({page}) => {
await page.setViewportSize({width: 375, height: 812});
await login(page);
// Navigation par onglets défilants, tous accessibles.
await expect(page.getByRole("button", {name: "Traitements"})).toBeVisible();
await page.getByRole("button", {name: "Traitements"}).click();
// Les fiches restent lisibles et cliquables: pastille + actions.
const ligne = ligneFilm(page, "Pacific Rim");
await expect(ligne).toBeVisible();
await expect(ligne.locator(".status", {hasText: "Détecté"})).toBeVisible();
await ligne.click();
await expect(page.locator(".modal").getByRole("heading", {name: "Pacific Rim", level: 2})).toBeVisible();
await expect(page.getByRole("button", {name: "Convertir en MKV"})).toBeVisible();
});
test("la fiche reste lisible sur écran étroit", async ({page}) => {
await page.setViewportSize({width: 360, height: 740});
await login(page);
await page.getByRole("button", {name: "Traitements"}).click();
await page.getByRole("button", {name: "Traités"}).click();
await ligneFilm(page, "Cars").click();
// Le tableau de la fiche passe en une colonne, contenu complet visible.
await expect(page.getByText("MKV lié (dossier du film)")).toBeVisible();
await expect(page.getByText("MKV brut (dossier de travail)")).toBeVisible();
await page.locator(".modal").getByRole("button", {name: "Fermer"}).click();
await expect(page.locator(".modal")).toBeHidden();
});