mirror of
https://github.com/element-hq/element-call.git
synced 2026-05-25 14:14:25 +00:00
fix visibility test
This commit is contained in:
@@ -53,6 +53,7 @@ import { type MediaDevices as ECMediaDevices } from "../state/MediaDevices";
|
||||
import { constant } from "../state/Behavior";
|
||||
import { AppBar } from "../AppBar";
|
||||
import { initializeWidget } from "../widget";
|
||||
import { logger } from "matrix-js-sdk/lib/logger";
|
||||
|
||||
initializeWidget();
|
||||
vi.hoisted(
|
||||
@@ -213,7 +214,7 @@ describe("InCallView", () => {
|
||||
},
|
||||
});
|
||||
|
||||
getByRole(screen.getByRole("banner", { name: "" }), "button", {
|
||||
getByRole(screen.getByRole("banner"), "button", {
|
||||
name: "Settings",
|
||||
});
|
||||
});
|
||||
@@ -227,7 +228,7 @@ describe("InCallView", () => {
|
||||
},
|
||||
});
|
||||
|
||||
expect(queryByRole("button", { name: "Settings" })).toBe(null);
|
||||
expect(queryByRole("button", { name: "Settings" })).not.toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user