Skip to content

test(block): disable loader animation in chromatic snapshots#7333

Merged
benelan merged 1 commit intomainfrom
benelan/chromatic-ignore-loader-animation
Jul 18, 2023
Merged

test(block): disable loader animation in chromatic snapshots#7333
benelan merged 1 commit intomainfrom
benelan/chromatic-ignore-loader-animation

Conversation

@benelan
Copy link
Copy Markdown
Contributor

@benelan benelan commented Jul 18, 2023

Related Issue: noticed the failing snapshots in #7327

For example: https://www.chromatic.com/test?appId=6266d45509d7eb004aa254fb&id=64b6d984dc6b56c885b8872f

Summary

Sets the duration factor to 0 in chromatic snapshots to prevent failures due to loader animation

@benelan benelan requested a review from a team as a code owner July 18, 2023 19:24
@github-actions github-actions Bot added the testing Issues related to automated or manual testing. label Jul 18, 2023
@benelan benelan added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Jul 18, 2023
Copy link
Copy Markdown
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Maybe we should just set this var for every story?

@benelan
Copy link
Copy Markdown
Contributor Author

benelan commented Jul 18, 2023

nice!

Maybe we should just set this var for every story?

Yeah good call, I'll refactor this PR to do that

@benelan
Copy link
Copy Markdown
Contributor Author

benelan commented Jul 18, 2023

After looking around for a bit, I haven't found a good way to globally apply this to only the TestOnly stories. I assume we still want animations in the hosted storybook. I'll document this in our conventions for now and I added it to my list to keep digging if/when have some extra time.

@benelan benelan merged commit a144314 into main Jul 18, 2023
@benelan benelan deleted the benelan/chromatic-ignore-loader-animation branch July 18, 2023 22:26
@github-actions github-actions Bot added this to the 2023 July Priorities milestone Jul 18, 2023
benelan added a commit that referenced this pull request Jul 20, 2023
**Related Issue:** #7333

## Summary

- Add contributing information about running chromatic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr ready for visual snapshots Adding this label will run visual snapshot testing. testing Issues related to automated or manual testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants