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

Update Cypress tests to reference elements by name and role instead of data-testid #353

Merged
merged 32 commits into from
May 23, 2024

Conversation

felixhabib
Copy link
Contributor

  • Use Cypress Testing Library to query elements by name and role.
  • Convert cypress e2e test files from Javascript to Typescript for better type safety in tests.
  • Add aria-labels to certain elements for improved accessibility and as a testing element reference.
  • Remove all unused data-testid attributes from elements.

Still using data-testid for the splashscreen, preview frames and preview frame names. Should find appropriate accessibility labels and use that for a testing reference in a seperate PR.

@felixhabib felixhabib requested a review from a team as a code owner May 22, 2024 04:27
Copy link

changeset-bot bot commented May 22, 2024

🦋 Changeset detected

Latest commit: 60f461a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@felixhabib felixhabib force-pushed the migrate-to-react-testing-library branch from ba6cd5f to a176e49 Compare May 22, 2024 05:33
@felixhabib felixhabib force-pushed the migrate-to-react-testing-library branch from ae07bfe to c66638c Compare May 22, 2024 06:20
Co-authored-by: Adam Skoufis <[email protected]>
@felixhabib felixhabib merged commit 422a259 into master May 23, 2024
6 checks passed
@felixhabib felixhabib deleted the migrate-to-react-testing-library branch May 23, 2024 04:33
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.

3 participants