mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
test: adapt unit tests to HealthChat fork customizations
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user