fix, testing: i18n not properly configured

This commit is contained in:
Valere
2025-03-03 14:37:29 +01:00
parent 05e81a8143
commit 4c91326edb
12 changed files with 30 additions and 42 deletions

View File

@@ -199,7 +199,7 @@ test("GroupCallView leaves the session when an error occurs", async () => {
const user = userEvent.setup();
const { rtcSession } = createGroupCallView(null);
await user.click(screen.getByRole("button", { name: "Panic!" }));
screen.getByText("error.generic");
screen.getByText("Something went wrong");
expect(leaveRTCSession).toHaveBeenCalledWith(
rtcSession,
"error",

View File

@@ -30,6 +30,6 @@ test("InviteModal is accessible", async () => {
);
expect(await axe(container)).toHaveNoViolations();
await user.click(screen.getByRole("button", { name: "action.copy_link" }));
await user.click(screen.getByRole("button", { name: "Copy link" }));
expect(onDismiss).toBeCalled();
});

View File

@@ -66,8 +66,6 @@ describe("VideoPreview", () => {
children={<></>}
/>,
);
expect(queryByRole("status")).toHaveTextContent(
"video_tile.camera_starting",
);
expect(queryByRole("status")).toHaveTextContent("Video loading...");
});
});