Skip to content

Commit

Permalink
Fix failing GridTile test
Browse files Browse the repository at this point in the history
Signed-off-by: Milton Moura <[email protected]>
  • Loading branch information
mgcm committed Sep 19, 2024
1 parent 69a50fb commit 42a7b1e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/tile/GridTile.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { axe } from "vitest-axe";

import { GridTile } from "./GridTile";
import { withRemoteMedia } from "../utils/test";
import { ReactionsProvider } from "../useReactions";

test("GridTile is accessible", async () => {
await withRemoteMedia(
Expand All @@ -26,14 +27,16 @@ test("GridTile is accessible", async () => {
},
async (vm) => {
const { container } = render(
<GridTile
vm={vm}
onOpenProfile={() => {}}
targetWidth={300}
targetHeight={200}
showVideo
showSpeakingIndicators
/>,
<ReactionsProvider>
<GridTile
vm={vm}
onOpenProfile={() => {}}
targetWidth={300}
targetHeight={200}
showVideo
showSpeakingIndicators
/>
</ReactionsProvider>,
);
expect(await axe(container)).toHaveNoViolations();
// Name should be visible
Expand Down

0 comments on commit 42a7b1e

Please sign in to comment.