From 1b0b2803d076a907132079d955328fcc69a6bc3e Mon Sep 17 00:00:00 2001 From: Ollie Curtis <8831547+olliecurtis@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:02:03 +0100 Subject: [PATCH] Testing adding timeout for stories to render --- examples/bpk-component-tooltip/stories.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/examples/bpk-component-tooltip/stories.tsx b/examples/bpk-component-tooltip/stories.tsx index 38919bf1450..d32b95c5577 100644 --- a/examples/bpk-component-tooltip/stories.tsx +++ b/examples/bpk-component-tooltip/stories.tsx @@ -39,10 +39,24 @@ export const OnTheSide = SideExample; export const WithoutPadding = NoPaddingExample; export const OnALink = LinkExample; export const Focus = FocusExample; -export const VisualTest = VisualTestExample; + +const VisualExample = VisualTestExample; +export const VisualTest = { + render: VisualExample, + parameters: { + percy: { + waitForTimeout: 30000 + } + } +}; export const VisualTestWithZoom = { - render: VisualTest, + render: VisualExample, args: { zoomEnabled: true, }, + parameters: { + percy: { + waitForTimeout: 30000 + } + } };