Skip to content

Commit a55771c

Browse files
search tooltip in document body
1 parent 3e10a43 commit a55771c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/lib/src/chip/Chip.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ export const Tooltip: Story = {
217217
const chipLabel = await canvas.findByText("Default with tooltip and very long text");
218218
await userEvent.hover(chipLabel);
219219

220-
await canvas.findByRole("tooltip");
220+
const documentCanvas = within(document.body);
221+
await documentCanvas.findByRole("tooltip");
221222
},
222223
parameters: { chromatic: { delay: 5000 } },
223224
};

0 commit comments

Comments
 (0)