feat(protokoll): Protokoll ansehen, mit Filtern und Mandantensicht (#45)
This commit was merged in pull request #45.
This commit is contained in:
@@ -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, " ");
|
||||
|
||||
Reference in New Issue
Block a user