Skip to content

feat(browser-ui): add testids#871

Merged
fi3ework merged 1 commit intomainfrom
test-id
Jan 15, 2026
Merged

feat(browser-ui): add testids#871
fi3ework merged 1 commit intomainfrom
test-id

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

  • add stable data-testid hooks for browser-ui interactions
  • add data-testid instruction to AGENTS.md

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 15, 2026 11:59
@fi3ework fi3ework changed the title feat(browser-ui): add testids and simplify fixtures feat(browser-ui): add testids Jan 15, 2026
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 15, 2026

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 5ec871e
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6968d68b76fd4500089578da
😎 Deploy Preview https://deploy-preview-871--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds stable data-testid attributes to browser-ui components for improved automation and agent testing capabilities, and documents the policy for maintaining these test IDs in the future.

Changes:

  • Added data-testid attributes to all interactive UI elements (buttons, inputs, tree nodes, headers)
  • Extended component props to support dynamic test identifiers (file paths, test case IDs, suite names)
  • Documented the data-testid policy in AGENTS.md for future development

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/browser-ui/src/components/TestSuiteTitle.tsx Added fullName prop and test IDs for suite titles and rerun buttons
packages/browser-ui/src/components/TestCaseTitle.tsx Added caseId prop and test IDs for case titles and rerun buttons
packages/browser-ui/src/components/TestFileTitle.tsx Added filePath prop and test IDs for file titles and action buttons
packages/browser-ui/src/components/TestFilesTree.tsx Passed new props to title components and added test IDs for tree and project titles
packages/browser-ui/src/components/TestFilesHeader.tsx Added test IDs to header, search input, and action buttons
packages/browser-ui/src/components/SidebarHeader.tsx Added test IDs to header and theme toggle button
packages/browser-ui/src/components/PreviewHeader.tsx Added test IDs to header and action buttons
packages/browser-ui/AGENTS.md Added comprehensive documentation about data-testid policy and guidelines

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fi3ework fi3ework enabled auto-merge (squash) January 15, 2026 12:12
@fi3ework fi3ework merged commit 147be30 into main Jan 15, 2026
38 of 43 checks passed
@fi3ework fi3ework deleted the test-id branch January 15, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants