Skip to content

Conversation

@gaetanmaisse
Copy link
Member

Issue: The zoom related stories look to take some time to be properly rendered, so the Chromatic snapshots aren't always the same causing some false positive changes in almost every PR.

What I did

I followed Chromatic doc and added a small delay to ensure the rendering/zoom is done before taking the snapshot.
Details: https://www.chromatic.com/docs/delay

How to test

  • The snapshots of all the Zoom stories should be OK
  • After this PR will be merged we shouldn't have false positive on these stories.

…tency

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 <[email protected]>
@gaetanmaisse gaetanmaisse added the maintenance User-facing maintenance tasks label Jan 19, 2021
@gaetanmaisse gaetanmaisse requested a review from a team January 19, 2021 21:07
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM! thanks so much for fixing. i thought we'd already tried that, but i guess it was my imagination 🤦‍♂️

@shilman shilman merged commit 66d1692 into next Jan 20, 2021
@shilman shilman deleted the update-stories-with-flaky-snapshots branch January 20, 2021 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance User-facing maintenance tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants