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

adding support for percyThrowErrorOnFailure , by default it will be false #803

Merged
merged 10 commits into from
Jun 13, 2024

Conversation

prklm10
Copy link
Contributor

@prklm10 prklm10 commented Jun 12, 2024

adding support for percyThrowErrorOnFailure, by default it will be false.
percyThrowErrorOnFailure is to be set in cypress config.

@prklm10 prklm10 requested a review from a team as a code owner June 12, 2024 10:19
index.js Outdated
@@ -73,6 +73,8 @@ Cypress.Commands.add('percySnapshot', (name, options) => {
// Handle errors
log.error(`Could not take DOM snapshot "${name}"`);
log.error(error);
/* istanbul ignore next */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • I tried to write test to cover throwing of error, but was unable to do this.
  • It is little complicated in cypress test to test this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

issue -> cypress-io/cypress#2487. there is no definite answer here. Maybe we can sync on this.

@prklm10 prklm10 changed the title adding support for throwErrorOnFailure, by default it will be false adding support for PERCY_THROW_ERROR_ON_FAILURE, by default it will be false Jun 13, 2024
@prklm10 prklm10 changed the title adding support for PERCY_THROW_ERROR_ON_FAILURE, by default it will be false adding support for percyThrowErrorOnFailure , by default it will be false Jun 13, 2024
@prklm10 prklm10 merged commit 40d02e2 into master Jun 13, 2024
5 checks passed
@prklm10 prklm10 deleted the PER-3252 branch June 13, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants