-
Notifications
You must be signed in to change notification settings - Fork 3.4k
chore: display self healed badge for cyPrompt #32802
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
base: develop
Are you sure you want to change the base?
Conversation
…com:cypress-io/cypress into alejandro/chore/implement-self-healed-badge
cypress
|
||||||||||||||||||||||||||||||||||||||||
| Project |
cypress
|
| Branch Review |
alejandro/chore/implement-self-healed-badge
|
| Run status |
|
| Run duration | 19m 29s |
| Commit |
|
| Committer | estrada9166 |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
11
|
|
|
1102
|
|
|
4
|
|
|
26757
|
| View all changes introduced in this branch ↗︎ | |
Warning
Partial Report: The results for the Application Quality reports may be incomplete.
UI Coverage
45.74%
|
|
|---|---|
|
|
186
|
|
|
161
|
Accessibility
97.98%
|
|
|---|---|
|
|
4 critical
8 serious
2 moderate
2 minor
|
|
|
101
|
…com:cypress-io/cypress into alejandro/chore/implement-self-healed-badge
…com:cypress-io/cypress into alejandro/chore/implement-self-healed-badge
…com:cypress-io/cypress into alejandro/chore/implement-self-healed-badge
|
|
||
| get isSelfHealed () { | ||
| return this._isSelfHealed | ||
| } |
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.
Bug: Self-Heal Flag Persistence Across Test Attempts
The _isSelfHealed flag is never reset between test retries. Once set to true when a self-healed command is encountered in one attempt, it remains true for all subsequent attempts, even if those attempts don't contain self-healed commands. The isSelfHealed getter should compute the status from the current attempt(s) rather than storing a persistent flag. This will cause the self-healed badge to incorrectly display on tests that had self-healed commands in earlier attempts but not in the final attempt.
Additional details
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation?type definitions?Note
Adds a self-healed badge to command logs and the test header, with state propagation from commands to tests and accompanying tests/styles/assets.
renderProps.selfHealedis set inpackages/reporter/src/commands/command.tsxvia newSelfHealedBadgecomponent.packages/reporter/src/test/test.tsxwhen the test is marked self-healed.selfHealedtoRenderPropsand computedisSelfHealedonCommand(packages/reporter/src/commands/command-model.ts).Attempt, propagate self-healed from command logs to the parent test (test.setIsSelfHealed(true)) on add/update (packages/reporter/src/attempts/attempt-model.ts)._isSelfHealed, setter/getter onTestto track and expose self-healed state (packages/reporter/src/test/test-model.ts).sparkle_x16.svgicon andSelfHealedBadgecomponent with styles (packages/reporter/src/lib/selfHealedBadge.tsx,packages/reporter/src/lib/selfHealedBadge.scss), imported inmain.scssandmain-runner.scss.packages/reporter/cypress/e2e/commands.cy.ts.Written by Cursor Bugbot for commit e916838. This will update automatically on new commits. Configure here.