-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix rerun before/after hooks on top navigation #7035
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does address the issue of before
hooks running multiple times when navigating to a different cross-domain across separate tests. (I actually wasn't able to replicate this happening with after
hooks before this fix).
This does not address #2777 which is the before
hook running twice when there is no baseUrl
, so it navigates to our localhost:randomport
- runs before
hook, then redirects to the url under cy.visit()
and runs the before
hook again. Not sure if that is important for you to address to move forward with your other work.
packages/server/test/support/fixtures/projects/e2e/cypress/integration/issue_1987_spec.js
Outdated
Show resolved
Hide resolved
1bc41ff
to
16e963b
Compare
16e963b
to
6ce2903
Compare
Well, I clicked the update branch button and it looks like it merged it instead |
Does this also fix #3904? |
New PR to follow is here: #7154 |
User facing changelog
Additional details
How has the user experience changed?
PR Tasks