test: adapt unit tests to HealthChat fork customizations

This commit is contained in:
2026-06-06 15:14:12 +02:00
parent 2685821bdc
commit d72b973d01
9 changed files with 36 additions and 58 deletions
@@ -667,8 +667,8 @@ describe("RoomHeader", () => {
const button = screen.getByRole("button", { name: "Video call" });
expect(button).not.toHaveAttribute("aria-disabled", "true");
await user.click(button);
const elementCallButton = screen.getByRole("menuitem", { name: "Element Call" });
const legacyCallButton = screen.getByRole("menuitem", { name: "Legacy Call" });
const elementCallButton = screen.getByRole("menuitem", { name: _t("voip|element_call") });
const legacyCallButton = screen.getByRole("menuitem", { name: _t("voip|legacy_call") });
expect(elementCallButton).toBeInTheDocument();
expect(legacyCallButton).toBeInTheDocument();
});
@@ -684,8 +684,8 @@ describe("RoomHeader", () => {
const button = screen.getByRole("button", { name: "Voice call" });
expect(button).not.toHaveAttribute("aria-disabled", "true");
await user.click(button);
const elementCallButton = screen.getByRole("menuitem", { name: "Element Call" });
const legacyCallButton = screen.getByRole("menuitem", { name: "Legacy Call" });
const elementCallButton = screen.getByRole("menuitem", { name: _t("voip|element_call") });
const legacyCallButton = screen.getByRole("menuitem", { name: _t("voip|legacy_call") });
expect(elementCallButton).toBeInTheDocument();
expect(legacyCallButton).toBeInTheDocument();
});