Skip to content

Commit

Permalink
docs(popover): fix Chromatic delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 committed May 13, 2024
1 parent 2022767 commit 0b351b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/popover/stories/popover.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ const ChromaticTipPlacementVariants = (args) => html`
content: [`${optionDescription()}`],
})}
`)}
</div>
</div>
<div style="padding-top: 2rem">
${SourcelessTemplate({
...args,
position: option,
isOpen: true,
})}
</div>
</div>
Expand All @@ -190,7 +191,7 @@ export const WithTip = (args) => html`
`;
WithTip.play = async ({ canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole("button"));
window.isChromatic() ? null : await userEvent.click(canvas.getByRole("button"));
};
WithTip.args = {
withTip: true,
Expand Down

0 comments on commit 0b351b9

Please sign in to comment.