Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Skip story on error and move to next stories #819

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

ninadbstack
Copy link
Contributor

@ninadbstack ninadbstack commented Oct 12, 2023

Context:

  • Currently if percySnapshot fails on one of the stories [ say dom.js returned an exception or timedout ] we throw that error again
  • This breaks test suite and no further stories are uploaded

Change:

  • We add an env var PERCY_SKIP_STORY_ON_ERROR which if set to 'true' would log the error skip the story and move to next story
  • We also recreate the page to avoid any state related issues

Copy link
Contributor

@itsjwala itsjwala left a comment

Choose a reason for hiding this comment

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

lgtm

@ninadbstack ninadbstack merged commit 7b02234 into master Oct 13, 2023
4 checks passed
@ninadbstack ninadbstack deleted the skip-story-on-error branch October 13, 2023 11:34
@ninadbstack ninadbstack added the ✨ enhancement New feature or request label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants