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
Flake with location object #16463
Labels
Comments
Found that when failing, it has an empty string const getLocation = () => {
const location = cy.getRemoteLocation()
console.log('location "%s" %s', location.toString(), JSON.stringify(location))
return _.isString(key)
// use existential here because we only want to throw
// on null or undefined values (and not empty strings)
? location[key] ?? $errUtils.throwErrByPath('location.invalid_key', { args: { key, location } })
: location
} |
2 tasks
The code for this is done in cypress-io/cypress#16772, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Cypress v7.3.0
Reproducible example in https://github.com/bahmutov/cypress-ethereal-email-example/tree/location-flake
The test redirects from localhost to localhost
/confirm
through Sendgrid URL. Sometimes it works, sometimes it does not (even though the page does load fine)When it fails it shows
Almost like it has temporary blip with the
location
object and does not retry getting it againThe text was updated successfully, but these errors were encountered: