Skip to content

Commit 7787147

Browse files
authored
test: expect to be visible before focus in video-conference (RocketChat#36789)
1 parent 00611ac commit 7787147

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

apps/meteor/tests/e2e/video-conference.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ test.describe('video conference', () => {
3535
await page.keyboard.press('Tab');
3636
await page.keyboard.press('Space');
3737

38+
await expect(poHomeChannel.content.getVideoConfPopup(`Start a call in ${targetChannel}`)).toBeVisible();
3839
await expect(poHomeChannel.content.btnVideoConfMic).toBeFocused();
3940
});
4041

packages/ui-video-conf/src/VideoConfPopup/VideoConfPopupBackdrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const backdropStyle = css`
1515
`;
1616

1717
const VideoConfPopupBackdrop = ({ children }: { children: ReactNode }): ReactElement => (
18-
<Box m={40} className={backdropStyle}>
18+
<Box m={40} zIndex={99} className={backdropStyle}>
1919
{children}
2020
</Box>
2121
);

packages/ui-video-conf/src/VideoConfPopup/__snapshots__/VideoConfPopup.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`renders StartCall without crashing 1`] = `
44
<body>
55
<div>
66
<div
7-
class="rcx-box rcx-box--full rcx-css-11d1wak rcx-css-tzpx07"
7+
class="rcx-box rcx-box--full rcx-css-11d1wak rcx-css-veoob9"
88
>
99
<div
1010
aria-label="Start Call"

0 commit comments

Comments
 (0)