Correct / document some missing bits in tests

This commit is contained in:
Robin
2025-10-08 17:33:17 -04:00
parent b1d143720a
commit e88474452f
4 changed files with 6 additions and 3 deletions

View File

@@ -150,6 +150,7 @@ function createGroupCallView(
const muteState = { const muteState = {
audio: { enabled: false }, audio: { enabled: false },
video: { enabled: false }, video: { enabled: false },
// TODO-MULTI-SFU: This cast isn't valid, it's likely the cause of some current test failures
} as unknown as MuteStates; } as unknown as MuteStates;
const { getByText } = render( const { getByText } = render(
<BrowserRouter> <BrowserRouter>
@@ -166,6 +167,7 @@ function createGroupCallView(
rtcSession={rtcSession as unknown as MatrixRTCSession} rtcSession={rtcSession as unknown as MatrixRTCSession}
muteStates={muteState} muteStates={muteState}
widget={widget} widget={widget}
// TODO-MULTI-SFU: Make joined and setJoined work
joined={true} joined={true}
setJoined={function (value: boolean): void {}} setJoined={function (value: boolean): void {}}
/> />

View File

@@ -136,6 +136,7 @@ function createInCallView(): RenderResult & {
const muteState = { const muteState = {
audio: { enabled: false }, audio: { enabled: false },
video: { enabled: false }, video: { enabled: false },
// TODO-MULTI-SFU: This cast isn't valid, it's likely the cause of some current test failures
} as unknown as MuteStates; } as unknown as MuteStates;
const livekitRoom = mockLivekitRoom( const livekitRoom = mockLivekitRoom(
{ {

View File

@@ -205,7 +205,7 @@ export const InCallView: FC<InCallViewProps> = ({
useReactionsSender(); useReactionsSender();
useWakeLock(); useWakeLock();
// TODO multi-sfu This is unused now?? // TODO-MULTI-SFU This is unused now??
// const connectionState = useObservableEagerState(vm.livekitConnectionState$); // const connectionState = useObservableEagerState(vm.livekitConnectionState$);
// annoyingly we don't get the disconnection reason this way, // annoyingly we don't get the disconnection reason this way,

View File

@@ -41,7 +41,7 @@ describe("VideoPreview", () => {
const { queryByRole } = render( const { queryByRole } = render(
<VideoPreview <VideoPreview
matrixInfo={matrixInfo} matrixInfo={matrixInfo}
videoEnabled={true} videoEnabled={false}
videoTrack={null} videoTrack={null}
children={<></>} children={<></>}
/>, />,
@@ -53,7 +53,7 @@ describe("VideoPreview", () => {
const { queryByRole } = render( const { queryByRole } = render(
<VideoPreview <VideoPreview
matrixInfo={matrixInfo} matrixInfo={matrixInfo}
videoEnabled={true} videoEnabled
videoTrack={null} videoTrack={null}
children={<></>} children={<></>}
/>, />,