From 8b4072ad9150e726b3588b50470bbbf8b2f3f36d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Oct 2026 21:51:40 +0000 Subject: [PATCH] =?UTF-8?q?[97]=20e2e:=20Fenster-=20und=20T=C3=BCrliste=20?= =?UTF-8?q?(Zeilen,=20Nummer,=20Brandschutz=20eintragen)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/openingSchedule.spec.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 e2e/openingSchedule.spec.ts diff --git a/e2e/openingSchedule.spec.ts b/e2e/openingSchedule.spec.ts new file mode 100644 index 00000000..ceb18062 --- /dev/null +++ b/e2e/openingSchedule.spec.ts @@ -0,0 +1,23 @@ +// Fenster- und Türliste ([97]) im Flächenbilanz-Panel: Zeilen je Öffnung, Nummer und Kennwerte editieren. +// Mit DOSSIER_SHOTS= entsteht zusätzlich ein Screenshot für die Abnahme. +import { expect, openSample, openTab, startNewProject, test } from "./app"; + +test("Fenster- und Türliste: Zeilen, Nummer und Brandschutz eintragen", async ({ page }) => { + await startNewProject(page); + await openSample(page); + await openTab(page, "Flächenbilanz"); + const table = page.locator(".opening-table"); + await expect(table).toBeVisible(); + const rows = table.locator("tbody tr"); + expect(await rows.count()).toBeGreaterThan(1); + // Automatische Nummern stehen als Platzhalter, das Feld selbst ist leer. + const first = rows.first().locator(".opening-mark"); + await expect(first).toHaveAttribute("placeholder", /^F1\.01$/); + await first.fill("F-Süd"); + await expect(rows.first().locator(".opening-mark")).toHaveValue("F-Süd"); + const door = table.locator("tbody tr", { hasText: "Tür" }).first(); + await door.locator("td").nth(9).locator("input").fill("EI30"); + await expect(door.locator("td").nth(9).locator("input")).toHaveValue("EI30"); + const shots = process.env.DOSSIER_SHOTS; + if (shots) await page.locator(".opening-section").screenshot({ path: `${shots}/fenster-tuerliste.png` }); +});