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 fd2c609
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 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 @@ -188,10 +189,6 @@ Default.args = {};
export const WithTip = (args) => html`
${window.isChromatic() ? ChromaticTipPlacementVariants(args) : Template(args)}
`;
WithTip.play = async ({ canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole("button"));
};
WithTip.args = {
withTip: true,
};
Expand Down

0 comments on commit fd2c609

Please sign in to comment.