Skip to content

Fix workflow action verification failing on stale instances#52

Merged
mraible merged 1 commit into
mainfrom
fix-stale-action-detection
May 28, 2026
Merged

Fix workflow action verification failing on stale instances#52
mraible merged 1 commit into
mainfrom
fix-stale-action-detection

Conversation

@mraible

@mraible mraible commented May 27, 2026

Copy link
Copy Markdown
Contributor

The workflow builder returns multiple instances of each action from previous deploys. Stale instances lack a Configure tab and intercept pointer events via a card overlay, causing the test to fail when it can't distinguish valid actions from stale ones.

Fixes:

  • Use getByRole('radio') instead of getByText() to target action card radio buttons precisely rather than matching parent containers
  • Add force: true to click() to bypass the card overlay that intercepts pointer events
  • Navigate Back after detecting a stale instance (no Configure tab) so the next instance is clickable
  • Wait for "Top results" to disappear between searches to prevent a race condition where stale results from the previous search cause premature checking

Tested locally 3/3 passes.

The workflow builder returns multiple instances of each action from
previous deploys. Stale instances lack a Configure tab and intercept
pointer events via a card overlay. Three fixes:

- Use getByRole('radio') instead of getByText() to target action cards
  precisely rather than matching parent containers
- Add force:true to click() to bypass the card overlay intercepting
  pointer events
- Navigate Back after detecting a stale instance so the next instance
  is clickable
- Wait for "Top results" to disappear between searches to avoid a race
  condition where stale results from the previous search cause premature
  radio element checking
@mraible mraible requested a review from a team May 27, 2026 16:18
@mraible mraible enabled auto-merge (squash) May 28, 2026 13:32
@mraible mraible merged commit 84919b5 into main May 28, 2026
5 checks passed
@mraible mraible deleted the fix-stale-action-detection branch May 28, 2026 17:03
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