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
feat: enhance test error UI #24266
feat: enhance test error UI #24266
Conversation
Thanks for taking the time to open a PR!
|
{model.event && model.type !== 'system' ? `(${displayName(model)})` : displayName(model)} | ||
</span> | ||
</span> | ||
{!!groupId && model.type === 'system' && model.state === 'failed' && <StateIcon aria-hidden className="failed-indicator" state={model.state}/>} |
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.
Note for Monday -- this is where the fail-indicator class came from -- verify you don't need to re-add vertical-align: middle
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.
Is the goal of isRecovered
to eventually be used outside of cy.session
? Does that mean session validation fails but the rest of the test continues?
Not necessarily, this is just cleaning up how this is currently implemented. I could see this potentially being used in the future by other "workflow-like" commands but there are no plans ATM that I am away of to create others commands of this style. Think of this as a try-catch-finally or try-catch-try_something_else.
Yes, it does. In the context of |
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.
wonder if we want to name the isRecovered
to something session specific until it is used more generically later? Either way changes look good on my end!
if (props.err) { | ||
if (!this.err) { | ||
this.err = new Err(props.err) | ||
} else { | ||
this.err.update(props.err) | ||
} | ||
} | ||
|
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.
Would it make sense to share this logic with the attempt-model?
cy.session()
. Next step will be to update howcy.session()
captures and reports these errors. It was getting too big when doing the work all-in-one.User facing changelog
I wouldn't necessarily call these note-worthy changes for the changelog. Addressed in #24266.
User Facing Changing
Review Percy screenshots to see the full impact of changes.
(edit: latest push tweaked these a bit, but these are the general look. See Percy!)
Test Error:
Recovered In-Test Error (currently only observed when using
cy.session()
)PR Tasks
cypress-documentation
?type definitions
?