-
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
Reporter error improvements #3930
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Headsup: the changes to the spec files (like |
There appears to be a some missing backticks on the errors - and others have backticks but are not highlighted correctly. I also think the "Learn More" gets lost because it's styled as |
@brian-mann Yeah, I'm working on getting more backticks correct and pulling on docsUrls since that work wasn't finished. I didn't want to touch the errors anymore with the big changes/conflicts before - that have been fixed. I'll fix the merge conflicts as well. |
packages/driver/test/cypress/integration/commands/files_spec.coffee
Outdated
Show resolved
Hide resolved
…, where only one item may be selected at a time- RadioInput is an abstraction over the a normal input type="radio"- CustomRadio enables adding a custom component to represent the selected item
…e same accessbility traits of radio groups exist for other selections; such as checkboxes, selectable lists, etc. Refactored RadioGroup to be more generalized. Its responsibilities include managing the selection of items via keyboard shortcuts, tabbing, etc. much like any other radio/select would work. Hopefully this work can be extended to other single select type components; leveraging these components underneath the hood.
The build was failing with webpack complaining that `lodash/fp` could not be found. Instead of spending any more time on it, I decided to just remove its use. I also worry that it adds more size to the bundle since it’s using a different branch of lodash so some amount of lodash is being duplicated in the bundle, though I couldn’t verify that because I could never get it building with `lodash/fp`
- make less brittle - remove vestigial file - increase languages supported
Nice :) |
This is terrific! It doesn't appear to show the codeframe in the terminal output when running headlessly with |
@kentcdodds Displaying the code frame in terminal output is not currently supported, but we're planning on adding that in the future. |
Good to hear! Is there an issue for tracking that? Or should I open a new one? |
We have it listed in this Epic issue for the next phase of error improvements. Feel free to create an individual issue for it though. It would help us gauge community interest in it and prioritize it. |
#7819 👍 |
User facing changelog
We've improved the display of errors in the Test Runner's Command Log. Errors now show a code frame preview with the highlighted line where the error occurred. You can now click links to files relevant to the errors that can be opened on your computer or in your preferred editor at the exact line of code. You can also click to expand the stack trace inline in the Command Log.
Additional details
How has the user experience changed?
Before
After
Code frame with highlighted line where err is being thrown
Expandable stack trace
'Learn more' link in err message if relevant documentation to link to
Clear 'print error to console' button
Select File opener Preference (including OS-specific file opener)
Error if no path given for Other
Select / change file opener preference from Settings
PR Tasks
cypress-documentation
? updates needed for error improvements PR cypress-documentation#2584type definitions
?cypress.schema.json
?Implementation Notes