mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): use async findByLabelText in ProviderAccordionCards story (#24087)
- 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.
This commit is contained in:
+1
-1
@@ -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();
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user