Skip to content

Commit

Permalink
click off the collapse text in timeline for visual-regression
Browse files Browse the repository at this point in the history
  • Loading branch information
will-byrne committed Jul 1, 2024
1 parent 8b721cd commit c2550cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/molecules/timeline/timeline.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const timeLineTest = async (canvasElement: HTMLElement, expandText: string, coll

const collapsedDts = Array.from(document.querySelectorAll('.review-timeline dt')).filter((node) => node.checkVisibility());
expect(collapsedDts).toHaveLength(1);

await userEvent.click(canvas.getByText('v2')); // unfocus the element to prevent issues with visual-regression
};

export const EventTimeline: Story = {
Expand Down

0 comments on commit c2550cb

Please sign in to comment.