Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(tests): Handle and final transcriptions.

damenchof31f9e19792a
diff --git a/tests/specs/2way/iFrameApiTranscriptions.spec.ts b/tests/specs/2way/iFrameApiTranscriptions.spec.ts
index 712c4c474a..9b57e2c8b3 100644
--- a/tests/specs/2way/iFrameApiTranscriptions.spec.ts
+++ b/tests/specs/2way/iFrameApiTranscriptions.spec.ts
@@ -197,7 +197,7 @@ async function checkReceivingChunks(p1: Participant, p2: Participant, webhooksPr
// @ts-ignore
const firstEntryData = result[0].value.data;
- const stable = firstEntryData.stable;
+ const stable = firstEntryData.stable || firstEntryData.final;
const language = firstEntryData.language;
const messageID = firstEntryData.messageID;
const p1Id = await p1.getEndpointId();
@@ -210,7 +210,7 @@ async function checkReceivingChunks(p1: Participant, p2: Participant, webhooksPr
return v.data;
}).forEach(tr => {
- const checkTranscripts = stable.includes(tr.stable) || tr.stable.includes(stable);
+ const checkTranscripts = stable.includes(tr.stable || tr.final) || (tr.stable || tr.final).includes(stable);
if (!checkTranscripts) {
console.log('received events', result);