-
Notifications
You must be signed in to change notification settings - Fork 13k
test: expect to be visible before focus in video-conference
#36789
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #36789 +/- ##
===========================================
+ Coverage 66.53% 66.54% +0.01%
===========================================
Files 3344 3345 +1
Lines 114629 114629
Branches 21093 21167 +74
===========================================
+ Hits 76271 76285 +14
+ Misses 35665 35662 -3
+ Partials 2693 2682 -11
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
379832c to
682df69
Compare
d097eae to
460a300
Compare
WalkthroughAdds an E2E test assertion to verify popup text visibility and updates the VideoConf popup backdrop to set zIndex=99. No public APIs or control flow changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Pre-merge checks (3 passed)✅ Passed checks (3 passed)
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. ✨ Finishing touches
🧪 Generate unit tests
Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
apps/meteor/tests/e2e/video-conference.spec.ts (2)
34-40: Make the visibility assertion resilient to i18n/copy changesRelying on exact English text may flake in localized runs. Prefer role- or test-id–based locators (e.g., dialog name, data-qa) or a regex/partial match anchored by channel name.
- await expect(poHomeChannel.content.getVideoConfPopup(`Start a call in ${targetChannel}`)).toBeVisible(); + // Example options (pick what's available in the app): + // By role + accessible name: + // await expect(page.getByRole('dialog', { name: new RegExp(`${targetChannel}`, 'i') })).toBeVisible(); + // Or by test id: + // await expect(page.getByTestId('video-conf-popup')).toBeVisible();
35-40: Nit: current checks don’t prove “visible before focus” orderingThis validates final state (visible + focused) but not that visibility preceded focus. If order matters for a11y, consider capturing focus events or awaiting visibility before the focusable is mounted/focused.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
packages/ui-video-conf/src/VideoConfPopup/__snapshots__/VideoConfPopup.spec.tsx.snapis excluded by!**/*.snap
📒 Files selected for processing (2)
apps/meteor/tests/e2e/video-conference.spec.ts(1 hunks)packages/ui-video-conf/src/VideoConfPopup/VideoConfPopupBackdrop.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: 📦 Build Packages
- GitHub Check: CodeQL-Build
- GitHub Check: CodeQL-Build
🔇 Additional comments (1)
packages/ui-video-conf/src/VideoConfPopup/VideoConfPopupBackdrop.tsx (1)
18-20: Avoid magic z-index; use a theme token or verify overlay orderHardcoding zIndex={99} risks stacking collisions — the repo scan you ran returned no matches for a global z-index/layer token, so I couldn't confirm an existing value to reuse. Replace zIndex={99} with a theme token or CSS variable (or add a documented layer token) and ensure this value sits above other overlays.
Location: packages/ui-video-conf/src/VideoConfPopup/VideoConfPopupBackdrop.tsx (lines 18–20).
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
FLAKY-1424
Summary by CodeRabbit
Bug Fixes
Tests