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
test(recording): wait for the FILE session to be fully on before stopping
damenchoc507dbdaca6b
diff --git a/tests/specs/jaas/recordingTranscription.spec.ts b/tests/specs/jaas/recordingTranscription.spec.tsindex 0f8f1ee577..c915fe6eae 100644--- a/tests/specs/jaas/recordingTranscription.spec.ts+++ b/tests/specs/jaas/recordingTranscription.spec.ts@@ -62,14 +62,16 @@ async function dismissRecordingNotification(p: Participant): Promise<void> {}/**- * Waits until the recording feature state reports that a FILE-mode session is active.+ * Waits until the recording feature state reports that a FILE-mode session is fully ON.+ * A PENDING session is not enough: jicofo rejects a stop request for a session whose jibri+ * is still starting (policy-violation/wait), so acting on a PENDING session races the backend.*/async function waitForRecordingRunning(p: Participant): Promise<void> {await p.driver.waitUntil(() => p.execute(() => Boolean(// eslint-disable-next-line @typescript-eslint/no-explicit-anyAPP.store.getState()['features/recording'].sessionDatas.some(- (s: any) => s.mode === 'file' && s.status !== 'off'))),+ (s: any) => s.mode === 'file' && s.status === 'on'))),{ timeout: 30_000, timeoutMsg: 'Recording session did not become active' });}