Skip to content

Commit 2efabff

Browse files
chore(chromatic): tuned configuration (#3795)
chore(chromatic): configuration
1 parent bfe9e77 commit 2efabff

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.storybook/preview.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ const preview = {
2121
parameters: {
2222
chromatic: {
2323
cropToViewport: true,
24+
delay: 500,
25+
diffThreshold: 0.1,
2426
modes: {
2527
specific: {
2628
viewport: {

src/components/time/ReadableTime.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ export default {
5252
component: ReadableTime,
5353
parameters: {
5454
notes,
55+
chromatic: {
56+
disableSnapshot: true,
57+
},
5558
},
5659
};

src/elements/content-preview/stories/tests/ContentPreview-visual.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ export default {
248248
},
249249
},
250250
parameters: {
251+
chromatic: {
252+
ignoreSelectors: ['[data-testid="content-answers-question-input-avatar"]'], // highly inconsistent in snapshots
253+
},
251254
msw: {
252255
handlers: [
253256
http.post(mockEventRequest.url, () => {

src/features/security-cloud-game/stories/SecurityCloudGame.stories.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ export default {
1313
component: SecurityCloudGame,
1414
parameters: {
1515
notes,
16+
chromatic: {
17+
disableSnapshot: true,
18+
},
1619
},
1720
};

0 commit comments

Comments
 (0)