mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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.`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user