feat(tests): Small improvements to dial-in test. (#15600)

* feat(tests): Small improvements to dial-in test.

* squash: Fix lint.
This commit is contained in:
Дамян Минков
2025-02-12 15:32:14 -06:00
committed by GitHub
parent 31a4f2a4ec
commit ac34f524fa
2 changed files with 15 additions and 2 deletions

View File

@@ -22,12 +22,22 @@ describe('Dial-In', () => {
});
it('retrieve pin', async () => {
const dialInPin = await ctx.p1.getInviteDialog().getPinNumber();
let dialInPin;
try {
dialInPin = await ctx.p1.getInviteDialog().getPinNumber();
} catch (e) {
console.error('dial-in.test.no-pin');
ctx.skipSuiteTests = true;
throw e;
}
await ctx.p1.getInviteDialog().clickCloseButton();
if (dialInPin.length === 0) {
console.error('dial-in.test.no-pin');
ctx.skipSuiteTests = true;
throw new Error('no pin');
}
expect(dialInPin.length >= 8).toBe(true);

View File

@@ -21,7 +21,10 @@ export async function waitForAudioFromDialInParticipant(participant: Participant
await participant.waitForIceConnected();
await participant.waitForRemoteStreams(1);
await participant.waitForSendReceiveData(20_000, 'dial-in.test.jigasi.participant.no.audio.after.join');
await participant.waitForSendReceiveData({
timeout: 20_000,
msg: 'dial-in.test.jigasi.participant.no.audio.after.join'
});
console.log(`dial-in.test.jigasi.participant.received.audio.after.join:${performance.now() - joinedTS} ms.`);
}