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 CallViewModel #2629

Merged
merged 15 commits into from
Sep 19, 2024
Merged

Test CallViewModel #2629

merged 15 commits into from
Sep 19, 2024

Conversation

robintown
Copy link
Member

@robintown robintown commented Sep 12, 2024

This adds tests for a couple of the less trivial bits of code in CallViewModel. Testing them helped me uncover why focus switches still weren't being smooth! (It was because I was using RxJS's sample operator when I really wanted withLatestFrom.)

Based on #2614

I had experimented with turning this off in order to improve test performance, and apparently that ended up being merged. Now if we're to do component testing, we'll be changing things globally on the document, so isolation is very much necessary.
This patch release fixes a bug where tooltips would label non-interactive triggers in an inaccessible way.
Catching two accessibility issues along the way: we were putting the wrong accessible labels on the 'expand' button, and even the off-screen pages of the spotlight tile were being exposed to accessibility technologies rather than hidden.
This adds tests for a couple of the less trivial bits of code in CallViewModel. Testing them helped me uncover why focus switches still weren't being smooth! (It was because I was using RxJS's sample operator when I really wanted withLatestFrom.)
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.

Thanks. This looks new and good to me.

src/utils/test.ts Outdated Show resolved Hide resolved
src/utils/test.ts Show resolved Hide resolved
src/utils/test.ts Outdated Show resolved Hide resolved
src/tile/SpotlightTile.tsx Show resolved Hide resolved
src/state/CallViewModel.ts Outdated Show resolved Hide resolved
@robintown robintown merged commit cec7fc8 into element-hq:livekit Sep 19, 2024
6 checks passed
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.

2 participants