Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(tests): Add more checks so that test don't error out.
Jaya Allamsettyfd313c1af733
diff --git a/react/features/base/testing/functions.js b/react/features/base/testing/functions.jsindex 19081aee4f..95b2d85b91 100644--- a/react/features/base/testing/functions.js+++ b/react/features/base/testing/functions.js@@ -38,7 +38,7 @@ export function isLargeVideoReceived({ getState }: Object): boolean {const largeVideoParticipantId = getState()['features/large-video'].participantId;const videoTrack = getTrackByMediaTypeAndParticipant(getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, largeVideoParticipantId);- const lastMediaEvent = getState()['features/large-video'].lastMediaEvent;+ const lastMediaEvent = getState()['features/large-video']?.lastMediaEvent;return videoTrack && !videoTrack.muted && (lastMediaEvent === 'playing' || lastMediaEvent === 'canplaythrough');}@@ -54,5 +54,5 @@ export function isRemoteVideoReceived({ getState }: Object, id: String): booleanconst videoTrack = getTrackByMediaTypeAndParticipant(getState()['features/base/tracks'], MEDIA_TYPE.VIDEO, id);const lastMediaEvent = videoTrack?.lastMediaEvent;- return !videoTrack.muted && (lastMediaEvent === 'playing' || lastMediaEvent === 'canplaythrough');+ return videoTrack && !videoTrack.muted && (lastMediaEvent === 'playing' || lastMediaEvent === 'canplaythrough');}