From b191923fe5880e10e6f5af7b97205a8a401745c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Maisse?= Date: Tue, 19 Jan 2021 21:39:23 +0100 Subject: [PATCH] chore: delay the chromatic snapshots of Zoom stories to ensure consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The zoom related stories look to take some time to be properly rendered and so the Chromatic snapshots aren't always the same. I added a small delay before the snapshot to ensure the rendering/zoom is done. Signed-off-by: Gaƫtan Maisse --- lib/components/src/Zoom/Zoom.stories.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/components/src/Zoom/Zoom.stories.tsx b/lib/components/src/Zoom/Zoom.stories.tsx index 9d510a1cc8cc..2ac2ca0942af 100644 --- a/lib/components/src/Zoom/Zoom.stories.tsx +++ b/lib/components/src/Zoom/Zoom.stories.tsx @@ -9,6 +9,9 @@ export default { control: { type: 'range', min: 0.2, max: 30, step: 0.02 }, }, }, + parameters: { + chromatic: { delay: 300 }, + }, }; const EXAMPLE_ELEMENT = (