-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: [Multi-domain] Improve timeout error message. #20671
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
Conversation
|
Thanks for taking the time to open a PR!
|
| If so, increase \`redirectionLimit\` value in configuration.` | ||
| }, | ||
| switch_to_domain_load_timed_out ({ ms, configFile, crossOriginUrl, origins }) { | ||
| return stripIndent`\ |
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.
error message suggestions are greatly appreciated.
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.
FWIW so far I really like where this has landed
packages/driver/cypress/integration/e2e/multi-domain/navigation_spec.ts
Outdated
Show resolved
Hide resolved
packages/driver/cypress/integration/e2e/multi-domain/navigation_spec.ts
Outdated
Show resolved
Hide resolved
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
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 |
||||||||||||||||||||||||||||||||||||||||||||||
Co-authored-by: Bill Glesias <bglesias@gmail.com>
| If so, increase \`redirectionLimit\` value in configuration.` | ||
| }, | ||
| switch_to_domain_load_timed_out ({ ms, configFile, crossOriginUrl, origins }) { | ||
| return stripIndent`\ |
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.
FWIW so far I really like where this has landed
Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> Co-authored-by: Bill Glesias <bglesias@gmail.com>
| Timed out after waiting \`${ms}ms\` for your remote page to load on origin(s): | ||
| ${origins.map((origin) => `\`${origin}\``).join('\n ')} |
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.
| ${origins.map((origin) => `\`${origin}\``).join('\n ')} | |
| - ${origins.map((origin) => `\`${origin}\``).join('\n - ')} |
Make them list items?
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.
I think this is fine, but wanted to point out that the items will have the dash, we don't seem to do any list item markdown conversion (i tried * previously)
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.
What's an example of there being multiple origins?
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.
I'm planning ahead for nested switchToDomains. Where you may want to return to any of the parent domains.
* Better timeout error handling * quick fix, should re-visit * cancel dangling timeouts * re-broadcast the window load event. * clean up code and comment more * ignore better * PR updates * oops, didn't mean to enable this * Apply suggestions from code review Co-authored-by: Bill Glesias <bglesias@gmail.com> * moar pr updates * Apply suggestions from code review Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com> Co-authored-by: Bill Glesias <bglesias@gmail.com> * Fix test * message changes * message update Co-authored-by: Bill Glesias <bglesias@gmail.com> Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
User facing changelog
n/a
Additional details
This PR improves our error message for timeouts due to multi-domain
Error TODOS:
Better error when a command expects to run on one origin but it is run against another origin.
How has the user experience changed?
PR Tasks
cypress-documentation?type definitions?cypress.schema.json?