✨ Bouton manuel 'Supprimer l'ISO' visible sur chaque traite non purge - ISO localisee par nom en repli (films traites avant la capture), passage en purges automatique
This commit is contained in:
1 parent
5aa3dd5116
commit
fb2a6c50a4
8 files changed
+263
-32
No files matched your search
@@ -6,7 +6,7 @@ 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: "Traités"})).toContainText("2");
|
||||
await expect(page.locator(".stat", {hasText: "Erreurs"})).toContainText("4");
|
||||
|
||||
// Colonnes d'activité: aucune conversion en cours, une terminée (Cars).
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {expect, test} from "@playwright/test";
|
||||
|
||||
import {ligneFilm, login} from "./helpers";
|
||||
import {fermerNotifications, ligneFilm, login} from "./helpers";
|
||||
|
||||
test("les onglets affichent les films dans la bonne catégorie", async ({page}) => {
|
||||
await login(page);
|
||||
@@ -13,7 +13,7 @@ test("les onglets affichent les films dans la bonne catégorie", async ({page})
|
||||
// Traités: Cars, avec sa pastille verte.
|
||||
await page.getByRole("button", {name: "Traités"}).click();
|
||||
await expect(ligneFilm(page, "Cars")).toBeVisible();
|
||||
await expect(page.locator(".status.st-completed", {hasText: "Terminé"})).toBeVisible();
|
||||
await expect(ligneFilm(page, "Cars").locator(".status.st-completed", {hasText: "Terminé"})).toBeVisible();
|
||||
|
||||
// Erreurs: Film Erreur.
|
||||
await page.getByRole("button", {name: "Erreurs"}).click();
|
||||
@@ -124,3 +124,23 @@ test("la sélection multiple réinitialise plusieurs lignes en erreur", async ({
|
||||
await expect(ligneFilm(page, "Film Erreur Ter")).toBeVisible();
|
||||
await expect(ligneFilm(page, "Film Erreur Quat")).toBeVisible();
|
||||
});
|
||||
|
||||
test("le bouton manuel d'un traité supprime l'ISO et passe le film en purgé", async ({page}) => {
|
||||
await login(page);
|
||||
await page.getByRole("button", {name: "Traitements"}).click();
|
||||
await page.getByRole("button", {name: "Traités"}).click();
|
||||
await fermerNotifications(page);
|
||||
|
||||
await ligneFilm(page, "Cars").getByRole("button", {name: "Supprimer l’ISO"}).click();
|
||||
const modal = page.locator(".modal.confirm");
|
||||
await expect(modal.getByRole("heading", {name: "Cars", level: 2})).toBeVisible();
|
||||
await modal.getByRole("button", {name: "Supprimer l’ISO", exact: true}).click();
|
||||
|
||||
await expect(
|
||||
page.locator(".notification", {hasText: /supprimée — le film passe dans les purgés/}),
|
||||
).toBeVisible();
|
||||
// La ligne quitte « Traités » et apparaît dans « Purgés ».
|
||||
await expect(ligneFilm(page, "Cars")).toBeHidden();
|
||||
await page.getByRole("button", {name: "Purgés"}).click();
|
||||
await expect(ligneFilm(page, "Cars")).toBeVisible();
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import {expect, test} from "@playwright/test";
|
||||
|
||||
import {ligneFilm, login} from "./helpers";
|
||||
import {fermerNotifications, ligneFilm, login} from "./helpers";
|
||||
|
||||
test("l'interface reste utilisable sur mobile", async ({page}) => {
|
||||
await page.setViewportSize({width: 375, height: 812});
|
||||
@@ -14,6 +14,8 @@ test("l'interface reste utilisable sur mobile", async ({page}) => {
|
||||
const ligne = ligneFilm(page, "Pacific Rim");
|
||||
await expect(ligne).toBeVisible();
|
||||
await expect(ligne.locator(".status", {hasText: "Détecté"})).toBeVisible();
|
||||
// Les notifications empilees peuvent recouvrir la ligne sur mobile.
|
||||
await fermerNotifications(page);
|
||||
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();
|
||||
@@ -24,7 +26,8 @@ test("la fiche reste lisible sur écran étroit", async ({page}) => {
|
||||
await login(page);
|
||||
await page.getByRole("button", {name: "Traitements"}).click();
|
||||
await page.getByRole("button", {name: "Traités"}).click();
|
||||
await ligneFilm(page, "Cars").click();
|
||||
await fermerNotifications(page);
|
||||
await ligneFilm(page, "Autre Traite").click();
|
||||
|
||||
// Le tableau de la fiche passe en une colonne, contenu complet visible.
|
||||
await expect(page.getByText("MKV lié (dossier du film)")).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user