feat(protokoll): Protokoll ansehen, mit Filtern und Mandantensicht (#45)
Prüfung / pruefung (push) Canceled after 0s
Prüfung / e2e (push) Canceled after 0s

This commit was merged in pull request #45.
This commit is contained in:
2026-10-04 16:06:26 +00:00
parent f5936327a0
commit e1f244e4e8
23 changed files with 1103 additions and 22 deletions
+14
View File
@@ -313,6 +313,20 @@ test.describe("Onboarding", () => {
protokoll: Number(spuren[0]?.protokoll),
}).toEqual({ ergebnisse: 0, kommentare: 0, protokoll: 0 });
/*
* ---- Auch nicht in der Protokoll-Ansicht -------------------------------
*
* Seit #023 ist das Protokoll sichtbar, und die Seite zeigt `vorher` und
* `nachher` als Text. Die Abfrage oben belegt, dass dort nichts steht; dieser
* Griff belegt, dass die **Ansicht** nichts hinzuerfindet — etwa aus einer
* aufgelösten Vorschau.
*/
await page.goto("/admin/protokoll");
const protokollSeite = (await page.locator("body").innerText()).replace(/\s+/gu, " ");
expect(protokollSeite).not.toContain(passwort);
// Gegenprobe: die Seite ist überhaupt da und zeigt Einträge.
await expect(page.getByRole("heading", { name: "Protokoll", level: 1 })).toBeVisible();
// ---- Auch nicht auf dem Ausdruck ---------------------------------------
await page.goto(`/drucken/lauf/${laufId}`);
const blatt = (await page.locator("body").innerText()).replace(/\s+/gu, " ");