From 63924ac687335a192aba000a7dd099781fdd4c55 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 7 Apr 2026 13:13:56 +0100 Subject: [PATCH] fix(site): use async findByLabelText in ProviderAccordionCards story (#24087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use async `findByLabelText` instead of sync `getByLabelText` in `ProviderAccordionCards` story - Same bug fixed in #23999 for three other stories but missed for this one > 🤖 Written by a Coder Agent. Will be reviewed by a human. --- .../ChatModelAdminPanel/ChatModelAdminPanel.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ChatModelAdminPanel.stories.tsx b/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ChatModelAdminPanel.stories.tsx index 01236e1ec6..3d33f035c5 100644 --- a/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ChatModelAdminPanel.stories.tsx +++ b/site/src/pages/AgentsPage/components/ChatModelAdminPanel/ChatModelAdminPanel.stories.tsx @@ -255,7 +255,7 @@ export const ProviderAccordionCards: Story = { expect(body.queryByText("OpenAI")).not.toBeInTheDocument(); await userEvent.click(body.getByRole("button", { name: /OpenRouter/i })); - await expect(body.getByLabelText("Base URL")).toBeInTheDocument(); + await expect(await body.findByLabelText("Base URL")).toBeInTheDocument(); }, };