Skip to content

internal(browser): Add Clear input action#1167

Merged
going-confetti merged 1 commit intomainfrom
internal/clear-input-action
Apr 15, 2026
Merged

internal(browser): Add Clear input action#1167
going-confetti merged 1 commit intomainfrom
internal/clear-input-action

Conversation

@going-confetti
Copy link
Copy Markdown
Collaborator

@going-confetti going-confetti commented Apr 14, 2026

Description

  • Add Clear input action
  • ⚠️ Action options are not a part of this PR
grafik

How to Test

  • Add a new Clear input action
  • Configure the locator
  • Verify that the action has matching code in the script

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)


Note

Low Risk
Low risk: adds a new UI action and codegen path for locator.clear without changing existing action semantics or security-sensitive logic.

Overview
Adds a new Clear input browser action (locator.clear) to the Browser Test Editor, including UI/editor wiring (menu entry, icon, default locator suggestions, and a ClearActionBody locator form).

Extends the browser test graph/types and codegen pipeline to carry a new ClearExpression/ClearNode, connect it in the intermediate execution graph, and emit await locator.clear() in generated scenarios, including variable substitution and browser-scenario detection updates.

Reviewed by Cursor Bugbot for commit 26bd1bc. Bugbot is set up for automated code reviews on this repo. Configure here.

@going-confetti going-confetti marked this pull request as ready for review April 14, 2026 13:38
@going-confetti going-confetti requested a review from a team as a code owner April 14, 2026 13:38
Copy link
Copy Markdown
Collaborator

@allansson allansson left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@going-confetti going-confetti merged commit d310064 into main Apr 15, 2026
15 checks passed
@going-confetti going-confetti deleted the internal/clear-input-action branch April 15, 2026 08:23
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.

2 participants