✅ Tests Playwright (20 parcours utilisateur) + suite backend renforcee (56) + DOCUMENTATION.md + nettoyage (settings_store, react-router)
This commit is contained in:
1 parent
231a1f2599
commit
adab24ca61
20 files changed
+1315
-88
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import {expect, test} from "@playwright/test";
|
||||
|
||||
import {login} from "./helpers";
|
||||
|
||||
test("le tableau de bord affiche les statistiques et l'activité", async ({page}) => {
|
||||
await login(page);
|
||||
await expect(page.locator(".stat", {hasText: "À traiter"})).toContainText("7");
|
||||
await expect(page.locator(".stat", {hasText: "En cours"})).toContainText("0");
|
||||
await expect(page.locator(".stat", {hasText: "Traités"})).toContainText("1");
|
||||
await expect(page.locator(".stat", {hasText: "Erreurs"})).toContainText("2");
|
||||
|
||||
// Colonnes d'activité: aucune conversion en cours, une terminée (Cars).
|
||||
await expect(page.getByText("Aucun traitement en cours.")).toBeVisible();
|
||||
await expect(
|
||||
page.locator(".activity-col", {hasText: "Traitement terminé"}).getByText("Cars"),
|
||||
).toBeVisible();
|
||||
});
|
||||
|
||||
test("la navigation entre les pages fonctionne", async ({page}) => {
|
||||
await login(page);
|
||||
await page.getByRole("button", {name: "Traitements"}).click();
|
||||
await expect(page.getByRole("heading", {name: "Films ISO"})).toBeVisible();
|
||||
await page.getByRole("button", {name: "Configuration"}).click();
|
||||
await expect(page.getByRole("heading", {name: "Connexion Radarr"})).toBeVisible();
|
||||
await page.getByRole("button", {name: "Tableau de bord"}).click();
|
||||
await expect(page.getByRole("heading", {name: "Activité"})).toBeVisible();
|
||||
});
|
||||
Reference in new issue
Block a user