-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: Add existential operators to properties before calling split in processBrowserPreRequest #28952
fix: Add existential operators to properties before calling split in processBrowserPreRequest #28952
Conversation
4 flaky tests on run #54047 ↗︎Details:
|
Test | Artifacts | |
---|---|---|
network stubbing > waiting and aliasing > yields the expected interception when two requests are raced |
Test Replay
|
querying/querying.cy.js • 1 flaky test • 5x-driver-chrome
Test | Artifacts | |
---|---|---|
... > intercept aliases > returns the xhr |
Test Replay
|
waiting.cy.js • 1 flaky test • 5x-driver-chrome
Test | Artifacts | |
---|---|---|
... > errors > throws when waiting for response to route |
Test Replay
|
files.cy.js • 1 flaky test • 5x-driver-chrome
Test | Artifacts | |
---|---|---|
... > throws a specific error when file exists when it shouldn't |
Test Replay
|
Review all test suite changes for PR #28952 ↗︎
This is frustrating because according to the docs those are both required fields. Hmmm. |
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
Co-authored-by: Ryan Manuel <ryanm@cypress.io>
I added the comments defaulting to '' as I think if they would have also crashed a couple of lines later. Looks good now though. |
@this PR is already merged, however the changelog link is incorrect:
It should be
if
|
@MikeMcC399 Thanks Mike! |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
Seems this was introduced in #28517
If these properties don't exist, they should no longer crash. It may result in null values for some of the properties we're trying to check to process service worker requests, but this seems better than outright crashing. Perhaps there's a better long term solution to ensure these exist before getting these values.
Steps to test
Good question. I have no idea why this would even be the case and don't see a clear way to unit test it.
How has the user experience changed?
Users should not see cypress crash with:
PR Tasks
cypress-documentation
?type definitions
?