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

Some simple initial tests for MediaView #2813

Merged
merged 8 commits into from
Nov 25, 2024
Merged

Conversation

hughns
Copy link
Member

@hughns hughns commented Nov 20, 2024

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!

src/tile/MediaView.test.tsx Outdated Show resolved Hide resolved
@hughns
Copy link
Member Author

hughns commented Nov 21, 2024

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.

src/tile/MediaView.test.tsx Outdated Show resolved Hide resolved
src/tile/MediaView.test.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

The video with the test id makes sense to me.
I also did a quick search and nothing obvious came up.

@hughns hughns merged commit cf17426 into livekit Nov 25, 2024
7 checks passed
@hughns hughns deleted the hughns/mediaview-tests branch November 25, 2024 20:22
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