Skip to content

feat(tests): enhance role and label selectors for improved element ta… - #705

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-automation-e2e-testing
Nov 5, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-automation-e2e-testing

Conversation

@pikann

@pikann pikann commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the failing e2e-tests run (#41878005805). Four specs failed in every browser job because the tests had gone stale against recent UI changes. Only the e2e specs change; no app code is touched.

Changes

Spec Cause Fix
git-automation-nodes.spec.ts (2 tests) The automation palette now drops the Git: prefix from menu items in its Git section (8c901a79), so Git: Issue Created no longer matched. Look up Issue Created / Pull Request State Changed with exact: true. The canvas node title still reads Git: Issue Created, so that check is unchanged.
git-automation.spec.ts, git-settings.spec.ts (7 tests) getByLabel("Repository") matched both the input and the "Link a repository" dialog, a Playwright strict-mode violation. Use getByLabel("Repository", { exact: true }).
agents.spec.ts (1 test) The create-agent dialog gained a "Reasoning effort" combobox, so dialog.getByRole("combobox") matched two elements. Click .first(), the provider select.

Testing

  • Ran the four affected specs against the e2e docker stack on chromium: 56 passed.
  • Not run locally on firefox, webkit or mobile-safari; the changes are browser-independent selector fixes.
  • A few other tests failed in only one or two browsers in the original run (role-badges-selector, pagination, view-settings, docs folder rename, users-management). They look flaky and are not addressed here.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

  • Agent spec combobox scoping — .first() correctly targets the ACP provider picker, which is the first (and only unnamed) combobox on the step-2 config panel now that AcpModelEffortFields adds a second effort select.
  • Git trigger palette labels — the short forms with exact: true match PluginTypeGroup's gitNodeShortLabel() output, while the canvas assertion correctly keeps the full Git: Issue Created title.
  • Repository label selectors — exact: true avoids substring-matching the Repository description label on linked-repository cards.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit d3e1ec4 into master Nov 5, 2026
2 checks passed
@pikann
pikann deleted the fix/fix-failed-automation-e2e-testing branch November 5, 2026 04:42
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.

1 participant