Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add getByRole tests for all roles #30267

Conversation

billfienberg
Copy link

@billfienberg billfienberg commented Apr 5, 2024

TLDR

This PR adds getByRole tests for every aria role, and annotates the the failing roles with the fixme annotation.

Related Issues

Copy link
Contributor

github-actions bot commented Apr 5, 2024

Test results for "tests 1"

6 fatal errors, not part of any test

2 flaky ⚠️ [playwright-test] › ui-mode-trace.spec.ts:76:5 › should merge screenshot assertions
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:215:5 › should watch component via util

6214 passed, 55 skipped
✔️✔️✔️

Merge workflow run.

@billfienberg
Copy link
Author

@microsoft-github-policy-service agree

@billfienberg billfienberg changed the title test: add locator tests for all roles test: add getByRole tests for all roles Apr 8, 2024
@dgozman
Copy link
Contributor

dgozman commented Apr 15, 2024

@billfienberg Thank you for the PR! Unfortunately, most likely we would not merge it. We'd prefer PRs that identify the expected behavior based on the real-life examples rather than unit tests that just document the existing behavior. Ideally, there would be an improvement that fixes an issue and includes relevant test cases.

If you are willing to contribute in this space, I'd recommend to first collaborate on the issue to identify the usecases and possible improvements. Let me know what you think.

@dgozman dgozman closed this May 1, 2024
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.

None yet

2 participants