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

misc: add documentation for uncaught exceptions for within cy.origin() #5821

Merged

Conversation

AtofStryker
Copy link
Contributor

Adds documentation for handling uncaught exceptions for within cy.origin()

@@ -194,6 +194,18 @@ Cypress.on('uncaught:exception', (err, runnable) => {
})
```

If within the `cy.origin()` command, uncaught exceptions need to be turned off from within the command.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
If within the `cy.origin()` command, uncaught exceptions need to be turned off from within the command.
If an uncaught exception is thrown from a domain within a `cy.origin()` command, the uncaught exception handler will need to added within the `cy.origin()` command to take effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in 18955e1

@AtofStryker AtofStryker force-pushed the misc/add_cy_origin_uncaught_exception_documentation branch from 2670f39 to 18955e1 Compare May 2, 2024 21:11
@jennifer-shehane jennifer-shehane merged commit 27042fd into main May 2, 2024
7 checks passed
@jennifer-shehane jennifer-shehane deleted the misc/add_cy_origin_uncaught_exception_documentation branch May 2, 2024 21:52
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.

None yet

2 participants