-
Notifications
You must be signed in to change notification settings - Fork 92
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
Some simple initial tests for MediaView #2813
base: livekit
Are you sure you want to change the base?
Conversation
I have tried to make the intent of each test case clearer in the latest commit by factoring out the common base props for each test case. |
expect(screen.queryByTestId("video")).toBeNull(); | ||
expect(screen.getByTestId("avatar")).not.toBeVisible(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use role-based queries for these rather than test IDs?
</TooltipProvider>, | ||
); | ||
expect(await axe(container)).toHaveNoViolations(); | ||
expect(screen.getByTestId("unencrypted_warning_icon")).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also use a role or label query here
The purpose of moving videoMuted from CSS class to inline style is to make it more testable. I'm open to a more elegant way!