From c1fc0841b773347900fdecd6acc9ec74c8e4b100 Mon Sep 17 00:00:00 2001 From: Gabriel Santerre Date: Sat, 19 Mar 2022 22:07:29 -0400 Subject: [PATCH] ci(chromatic): limit viewport size to not reach the pixels limit --- stories/1-single-vertical-list.stories.tsx | 8 +++++++- stories/45-virtual.stories.tsx | 14 +++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/stories/1-single-vertical-list.stories.tsx b/stories/1-single-vertical-list.stories.tsx index 3322c1241..00dce9123 100644 --- a/stories/1-single-vertical-list.stories.tsx +++ b/stories/1-single-vertical-list.stories.tsx @@ -28,7 +28,13 @@ const Title = styled.h4` storiesOf('single vertical list', module) .add('basic', () => ) - .add('large data set', () => ) + .add('large data set', () => , { + chromatic: { + // This is to make sure we do not reach + // the 25,000,000px limit of the snapshot. + viewports: [320], + }, + }) .add('Droppable is a scroll container', () => ( ) .add('board', () => ) - .add('window list', () => ( - - )); + .add( + 'window list', + () => , + { + chromatic: { + // This is to make sure we do not reach + // the 25,000,000px limit of the snapshot. + viewports: [320], + }, + }, + );