Skip to content

Conversation

@estrada9166
Copy link
Member

@estrada9166 estrada9166 commented Oct 22, 2025

Additional details

Steps to test

How has the user experience changed?

PR Tasks


Note

Adds a Self-healed badge in the Command Log and test header when a command (e.g., cy.prompt) self-heals, with supporting model logic, styles, and tests.

  • Reporter:
    • UI: Render SelfHealedBadge in command messages and test titles when isSelfHealed is true; badge bubbles up to top level when groups collapse.
    • Models: Add renderProps.selfHealed; compute Command.isSelfHealed (including collapsed children) and Test.isSelfHealed (aggregated across attempts).
    • Components/Styles: New lib/selfHealedBadge.tsx and SCSS; imported into main styles; minor spacing tweak in commands.scss.
    • Tests: New e2e tests for badge visibility/behavior and unit tests for TestModel.isSelfHealed.
  • CLI:
    • Changelog: Update release date and note the new Self-healed badge feature.

Written by Cursor Bugbot for commit 56de58b. This will update automatically on new commits. Configure here.

@estrada9166 estrada9166 marked this pull request as ready for review October 23, 2025 18:20
…com:cypress-io/cypress into alejandro/chore/implement-self-healed-badge
@estrada9166 estrada9166 marked this pull request as draft October 23, 2025 18:25
@cypress
Copy link

cypress bot commented Oct 23, 2025

cypress    Run #66968

Run Properties:  status check passed Passed #66968  •  git commit 56de58b76e: Merge branch 'develop' into alejandro/chore/implement-self-healed-badge
Project cypress
Branch Review alejandro/chore/implement-self-healed-badge
Run status status check passed Passed #66968
Run duration 09m 53s
Commit git commit 56de58b76e: Merge branch 'develop' into alejandro/chore/implement-self-healed-badge
Committer Alejandro Estrada
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 694
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 130
View all changes introduced in this branch ↗︎

@estrada9166 estrada9166 marked this pull request as ready for review October 23, 2025 19:17
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes from the bot here.

@@ -0,0 +1,14 @@
import React from 'react'
import SparkleIcon from '@packages/frontend-shared/src/assets/icons/sparkle_x16.svg'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estrada9166 Was this not working with the @cypress-design/react-icon package?


get isSelfHealed () {
return this._isSelfHealed
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estrada9166 Can you test this?


get isSelfHealed () {
return (!!this.renderProps.selfHealed || (this.hasChildren && !this.isOpen && this.children.some((child) => !!child.renderProps.selfHealed)))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


get isSelfHealed () {
return (!!this.renderProps.selfHealed || (this.hasChildren && !this.isOpen && this.children.some((child) => !!child.renderProps.selfHealed)))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jennifer-shehane jennifer-shehane changed the title chore: display self healed badge for cyPrompt feat: display self healed badge for cy.prompt Oct 27, 2025

**Features:**

- Added a 'Self-healed' badge to the Command Log when `cy.prompt()` steps automatically recover after the element they need is not found in the cache. Addressed in [#32802](https://github.com/cypress-io/cypress/pull/32802).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estrada9166 You'll need to put a changelog entry with proper semver for every prompt feature since this is publicly released now.

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to work fine. Would like some feedback from design around the hovering styles.

@jennifer-shehane jennifer-shehane self-requested a review October 28, 2025 15:37
@jennifer-shehane jennifer-shehane merged commit b92dcdb into develop Oct 30, 2025
90 of 92 checks passed
@jennifer-shehane jennifer-shehane deleted the alejandro/chore/implement-self-healed-badge branch October 30, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants