From bcd12a046c2e176cf7e00f6c91689f88eccd6b93 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 6 Oct 2026 21:46:34 -0500 Subject: [PATCH] test: use checkbox semantics in Slack recovery coverage Co-Authored-By: Paperclip --- ui/src/pages/apps/chat/SlackAutomaticSetup.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/apps/chat/SlackAutomaticSetup.test.tsx b/ui/src/pages/apps/chat/SlackAutomaticSetup.test.tsx index d7dc76c225..e9d21b98bf 100644 --- a/ui/src/pages/apps/chat/SlackAutomaticSetup.test.tsx +++ b/ui/src/pages/apps/chat/SlackAutomaticSetup.test.tsx @@ -64,7 +64,7 @@ describe("automatic Slack setup actions", () => { it("requires an explicit checked-no-app confirmation before retrying an uncertain result", async () => { render({ ...endpoint, setup: { ...endpoint.setup!, slackRegistration: { status: "uncertain", errorCode: "slack_creation_uncertain" } } }); expect(container.querySelector("input[type=password]")).toBeNull(); - flushSync(() => container.querySelector("input[type=checkbox]")!.click()); + flushSync(() => container.querySelector('[role="checkbox"]')!.click()); enter("new-token"); click("Create Slack app"); await settle(); expect(api.createSlackApp.mock.calls[0][1]).toMatchObject({ confirmedNoAppCreated: true }); });