From 68b042a73a714edd0fca04283300bcb09974b497 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Wed, 9 Sep 2026 22:50:48 -0400 Subject: [PATCH] test(desktop): commit forum draft clears before navigation Signed-off-by: Logan Johnson --- desktop/tests/e2e/forum-agent-invitation.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop/tests/e2e/forum-agent-invitation.spec.ts b/desktop/tests/e2e/forum-agent-invitation.spec.ts index b17f5fcc04..208f1eb54f 100644 --- a/desktop/tests/e2e/forum-agent-invitation.spec.ts +++ b/desktop/tests/e2e/forum-agent-invitation.spec.ts @@ -430,7 +430,11 @@ for (const stage of ["add", "publish"] as const) { await expect( page.getByRole("button", { name: "Remove attachment" }), ).toBeVisible(); - if (replacement !== null) + if (replacement === "") { + await page.getByTestId("message-input").press("ControlOrMeta+a"); + await page.getByTestId("message-input").press("Backspace"); + await expect(page.getByTestId("message-input")).toBeEmpty(); + } else if (replacement !== null) await page.getByTestId("message-input").fill(replacement); await navigate(1); await releaseForumGate(page);