Skip to content

test(e2e): fix non-deterministic locators#8190

Draft
sid-bruno wants to merge 2 commits into
usebruno:mainfrom
sid-bruno:audit/non-deterministic-role-locators
Draft

test(e2e): fix non-deterministic locators#8190
sid-bruno wants to merge 2 commits into
usebruno:mainfrom
sid-bruno:audit/non-deterministic-role-locators

Conversation

@sid-bruno

Copy link
Copy Markdown
Collaborator

Description

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

sid-bruno and others added 2 commits June 4, 2026 19:22
Inventory Playwright and Testing Library role-based locators across
E2E specs and shared helpers, with risk patterns and file-level counts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace or scope nondeterministic getByRole usage across Playwright
helpers and E2E specs. Use existing data-testid values where available,
scope remaining role queries to modals/panes/tables, and migrate the
HttpMethodSelector unit test off broad RTL role queries. Update the
role locator audit with post-cleanup metrics and documented exceptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cc2fd993-fdc6-4c17-8bc3-31c7cd4ce1df

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant