Skip to content

Commit

Permalink
fix(tests): Fix avatar test adding FF condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Feb 20, 2025
1 parent a94e1ef commit ed030e4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/specs/3way/avatars.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,21 @@ describe('Avatar', () => {
await p1.getParticipantsPane().assertVideoMuteIconIsDisplayed(p2);

// Start the third participant
await ensureThreeParticipants(ctx);
await ensureThreeParticipants(ctx, {
skipInMeetingChecks: true
});

const { p3 } = ctx;

// When the first participant is FF because of their audio mic feed it will never become dominant speaker
// and no audio track will be received by the third participant and video is muted,
// that's why we need to do a different check that expects any track just from p2
if (p1.driver.isFirefox) {
await Promise.all([ p2.waitForRemoteStreams(1), p3.waitForRemoteStreams(1) ]);
} else {
await Promise.all([ p2.waitForRemoteStreams(2), p3.waitForRemoteStreams(2) ]);
}

// Pin local video and verify avatars are displayed
await p3.getFilmstrip().pinParticipant(p3);

Expand Down

0 comments on commit ed030e4

Please # to comment.