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:
Cian Johnston
2026-04-07 14:13:56 +02:00
committed by GitHub
parent 6c47e9ea23
commit 63924ac687
@@ -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();
},
};