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(test): Fix codec selection test
Jaya Allamsetty19399ec123b2
diff --git a/tests/specs/3way/codecSelection.spec.ts b/tests/specs/3way/codecSelection.spec.tsindex d53d14d488..63b8c9c253 100644--- a/tests/specs/3way/codecSelection.spec.ts+++ b/tests/specs/3way/codecSelection.spec.ts@@ -52,6 +52,8 @@ describe('Codec selection', () => {// Check if media is playing on p3.expect(await p3.execute(() => JitsiMeetJS.app.testing.isLargeVideoReceived())).toBe(true);+ const majorVersion = parseInt(p1.driver.capabilities.browserVersion || '0', 10);+// Check if p1 is encoding in VP9, p2 in VP8 and p3 in AV1 as per their codec preferences.// Except on Firefox because it doesn't support VP9 encode.if (p1.driver.isFirefox) {@@ -62,7 +64,12 @@ describe('Codec selection', () => {expect(await p2.execute(() => JitsiMeetJS.app.testing.isLocalCameraEncodingVp8())).toBe(true);- expect(await p3.execute(() => JitsiMeetJS.app.testing.isLocalCameraEncodingAv1())).toBe(true);+ // If there is a Firefox ep in the call, all other eps will switch to VP9.+ if (p1.driver.isFirefox && majorVersion < 136) {+ expect(await p3.execute(() => JitsiMeetJS.app.testing.isLocalCameraEncodingVp9())).toBe(true);+ } else {+ expect(await p3.execute(() => JitsiMeetJS.app.testing.isLocalCameraEncodingAv1())).toBe(true);+ }});it('codec switch over', async () => {