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 = {
audio: { 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;
const { getByText } = render(
<BrowserRouter>
@@ -166,6 +167,7 @@ function createGroupCallView(
rtcSession={rtcSession as unknown as MatrixRTCSession}
muteStates={muteState}
widget={widget}
// TODO-MULTI-SFU: Make joined and setJoined work
joined={true}
setJoined={function (value: boolean): void {}}
/>

View File

@@ -136,6 +136,7 @@ function createInCallView(): RenderResult & {
const muteState = {
audio: { 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;
const livekitRoom = mockLivekitRoom(
{

View File

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

View File

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