From ce852958bdf867f14da0da336fcf648dea0460e2 Mon Sep 17 00:00:00 2001 From: Jesse Merhi <79823012+jesse-merhi@users.noreply.github.com> Date: Sun, 9 Aug 2026 20:01:01 +1000 Subject: [PATCH] test(ui): cover mounted and receipt wizard submissions --- ui/src/e2e/custodian-event-nudge.e2e.test.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ui/src/e2e/custodian-event-nudge.e2e.test.ts b/ui/src/e2e/custodian-event-nudge.e2e.test.ts index 4aeed2642332..280dafe056ee 100644 --- a/ui/src/e2e/custodian-event-nudge.e2e.test.ts +++ b/ui/src/e2e/custodian-event-nudge.e2e.test.ts @@ -487,10 +487,18 @@ suite.define(() => { await gateway.deferNext("openclaw.chat"); await labelInput.fill("Twitch ops"); await page.getByRole("button", { name: "Submit" }).click(); - await expect.poll(() => labelInput.isDisabled()).toBe(true); - expect(await labelInput.evaluate((element) => getComputedStyle(element).cursor)).toBe( - "not-allowed", - ); + await expect + .poll(async () => (await labelInput.count()) === 0 || (await labelInput.isDisabled())) + .toBe(true); + if ((await labelInput.count()) > 0) { + expect(await labelInput.evaluate((element) => getComputedStyle(element).cursor)).toBe( + "not-allowed", + ); + } else { + expect( + page.locator(".custodian__structured-response", { hasText: "Twitch ops" }), + ).toHaveCount(1); + } await gateway.resolveDeferred("openclaw.chat", { sessionId: "e2e-rich-wizard",