Fix storybook stories (#10853)

Small PR to fix flaky stories
This commit is contained in:
Charles Bochet
2025-03-13 15:19:20 +01:00
committed by GitHub
parent 794110f9dd
commit a2004e6220
5 changed files with 14 additions and 22 deletions

View File

@ -159,12 +159,9 @@ export const DisabledWithDefaultStaticValues: Story = {
await userEvent.click(objectSelectCurrentValue);
{
const searchInputInSelectDropdown =
canvas.queryByPlaceholderText('Search');
const searchInputInSelectDropdown = canvas.queryByPlaceholderText('Search');
expect(searchInputInSelectDropdown).not.toBeInTheDocument();
}
expect(searchInputInSelectDropdown).not.toBeInTheDocument();
const selectedRecord = await canvas.findByText(
`${peopleMock.name.firstName} ${peopleMock.name.lastName}`,