diff --git a/src/room/GroupCallView.test.tsx b/src/room/GroupCallView.test.tsx index bf73c15d..3a290cc7 100644 --- a/src/room/GroupCallView.test.tsx +++ b/src/room/GroupCallView.test.tsx @@ -42,6 +42,7 @@ import { LazyEventEmitter } from "../LazyEventEmitter"; import { MatrixRTCFocusMissingError } from "../utils/errors"; import { ProcessorProvider } from "../livekit/TrackProcessorContext"; import { MediaDevicesContext } from "../MediaDevicesContext"; +import { HeaderStyle } from "../UrlParams"; vi.mock("../soundUtils"); vi.mock("../useAudioContext"); @@ -157,7 +158,7 @@ function createGroupCallView( confineToRoom={false} preload={false} skipLobby={false} - hideHeader={true} + header={HeaderStyle.Standard} rtcSession={rtcSession as unknown as MatrixRTCSession} isJoined={joined} muteStates={muteState} diff --git a/src/room/InCallView.test.tsx b/src/room/InCallView.test.tsx index e5a789e7..b88aaad7 100644 --- a/src/room/InCallView.test.tsx +++ b/src/room/InCallView.test.tsx @@ -47,6 +47,7 @@ import { ReactionsSenderProvider } from "../reactions/useReactionsSender"; import { useRoomEncryptionSystem } from "../e2ee/sharedKeyManagement"; import { MatrixAudioRenderer } from "../livekit/MatrixAudioRenderer"; import { MediaDevicesContext } from "../MediaDevicesContext"; +import { HeaderStyle } from "../UrlParams"; // vi.hoisted(() => { // localStorage = {} as unknown as Storage; @@ -158,7 +159,7 @@ function createInCallView(): RenderResult & { { queryByText("using to Device key transport"), ).not.toBeInTheDocument(); }); + it("is not shown if setting is disabled", () => { useExperimentalToDeviceTransportSetting.setValue(false); developerModeSetting.setValue(true); @@ -254,6 +256,7 @@ describe("InCallView", () => { queryByText("using to Device key transport"), ).not.toBeInTheDocument(); }); + it("is not shown if developer mode is disabled", () => { useExperimentalToDeviceTransportSetting.setValue(true); developerModeSetting.setValue(false); diff --git a/src/room/__snapshots__/InCallView.test.tsx.snap b/src/room/__snapshots__/InCallView.test.tsx.snap index 212283ec..634e9753 100644 --- a/src/room/__snapshots__/InCallView.test.tsx.snap +++ b/src/room/__snapshots__/InCallView.test.tsx.snap @@ -5,9 +5,56 @@ exports[`InCallView > rendering > renders 1`] = `
-
+
+ +
mocked: MatrixAudioRenderer
@@ -69,6 +116,15 @@ exports[`InCallView > rendering > renders 1`] = ` > Only works while using app

+
rendering > renders 1`] = `