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
feat(tests): Make sure we add a single listener for iframeAPI events.
damenchod61deab1636b
diff --git a/tests/pageobjects/IframeAPI.ts b/tests/pageobjects/IframeAPI.tsindex 9a3e123f97..67910edccf 100644--- a/tests/pageobjects/IframeAPI.ts+++ b/tests/pageobjects/IframeAPI.ts@@ -41,6 +41,10 @@ export default class IframeAPI extends BasePageObject {addEventListener(eventName: string) {return this.participant.execute((event, prefix) => {+ // we want to add it once as we use static .test[event] to store the last event+ if (window.jitsiAPI.listenerCount(event) > 0) {+ return;+ }console.log(`${new Date().toISOString()} ${prefix}iframeAPI - Adding listener for event: ${event}`);window.jitsiAPI.addListener(event, evt => {console.log(