From afce9e968cfaad23b5c451ab31f218e97c407854 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 12:53:35 +0000 Subject: [PATCH] =?UTF-8?q?[245]=20e2e=20Begehen:=20Taste=20G=20wiederhole?= =?UTF-8?q?n,=20bis=20der=20H=C3=B6rer=20h=C3=A4ngt=20(flackerte=20unter?= =?UTF-8?q?=20Last)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/walk.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e2e/walk.spec.ts b/e2e/walk.spec.ts index 0627bf73..21662a30 100644 --- a/e2e/walk.spec.ts +++ b/e2e/walk.spec.ts @@ -26,8 +26,12 @@ test("Begehen: Geist-Knopf und Taste G, Esc beendet", async ({ page }) => { const ghost = page.getByTestId("walk-ghost"); await expect(ghost).toHaveAttribute("aria-pressed", "false"); await expect(page.getByTestId("walk-help")).toContainText("G"); - await page.keyboard.press("g"); - await expect(ghost).toHaveAttribute("aria-pressed", "true"); + // Unter Last hängt der Tasten-Hörer des Begehen-Modus erst nach dem nächsten Effekt: G wiederholen, bis es wirkt + // (nur solange noch aus, damit kein Doppel-Umschalten entsteht). + await expect(async () => { + if ((await ghost.getAttribute("aria-pressed")) !== "true") await page.keyboard.press("g"); + await expect(ghost).toHaveAttribute("aria-pressed", "true", { timeout: 1_000 }); + }).toPass({ timeout: 15_000 }); await page.keyboard.press("g"); await expect(ghost).toHaveAttribute("aria-pressed", "false"); // W läuft ohne Absturz (Kollisionswelt wird aus dem Modell gebaut).