From e148296d5c3026917d1a8433a256811609b3de22 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:20:36 +0800 Subject: [PATCH] test(channels): wait for cancellation controls to settle --- nanobot/channels/linear/tests/webui/LinearPanel.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx b/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx index b201e9b66..39c817911 100644 --- a/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx +++ b/nanobot/channels/linear/tests/webui/LinearPanel.test.tsx @@ -488,7 +488,7 @@ describe("Linear channel UI", () => { expect(screen.getByRole("button", { name: "Cancel" })).toBeEnabled(); fireEvent.click(screen.getByRole("button", { name: "Cancel" })); expect(await screen.findByText("Authorization stopped.")).toBeVisible(); - expect(screen.getByRole("textbox", { name: "OAuth client ID" })).toBeEnabled(); + await waitFor(() => expect(screen.getByRole("textbox", { name: "OAuth client ID" })).toBeEnabled()); expect(requestMutationMock).toHaveBeenCalledWith( "settings.channel.connect.cancel", { channel: "linear", session_id: "linear-oauth" }, 20_000, );