From c2550cbbeb3d331b1e6a30932bb27f82f83948e0 Mon Sep 17 00:00:00 2001 From: Will Byrne Date: Mon, 1 Jul 2024 11:11:23 +0100 Subject: [PATCH] click off the collapse text in timeline for visual-regression --- src/components/molecules/timeline/timeline.stories.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/molecules/timeline/timeline.stories.tsx b/src/components/molecules/timeline/timeline.stories.tsx index 656679f16..953819860 100644 --- a/src/components/molecules/timeline/timeline.stories.tsx +++ b/src/components/molecules/timeline/timeline.stories.tsx @@ -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 = {