diff --git a/ui/src/e2e/custodian-event-nudge.e2e.test.ts b/ui/src/e2e/custodian-event-nudge.e2e.test.ts index 280dafe056ee..2812c74fc6fc 100644 --- a/ui/src/e2e/custodian-event-nudge.e2e.test.ts +++ b/ui/src/e2e/custodian-event-nudge.e2e.test.ts @@ -496,8 +496,10 @@ suite.define(() => { ); } else { expect( - page.locator(".custodian__structured-response", { hasText: "Twitch ops" }), - ).toHaveCount(1); + await page + .locator(".custodian__structured-response", { hasText: "Twitch ops" }) + .count(), + ).toBe(1); } await gateway.resolveDeferred("openclaw.chat", {