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(helpers): gate prejoin button click on APP.store for all participants
damenchob21acc73416e
diff --git a/tests/helpers/Participant.ts b/tests/helpers/Participant.tsindex fc5c6d54ef..30b2003d81 100644--- a/tests/helpers/Participant.ts+++ b/tests/helpers/Participant.ts@@ -275,20 +275,18 @@ export class Participant {if (!options.skipPrejoinButtonClick// @ts-ignore&& !Boolean(await this.execute(() => config.prejoinConfig?.enabled === false))) {- // For iFrame API tests, the wrapper page's iframeAPI.onload fires before the embedded Jitsi- // app inside the iframe has finished its own init, so the prejoin Join button can be in the- // DOM with no React click handler attached yet. APP.store is created during conference.init,- // which is also when prejoin's handlers mount; gating the click on it avoids the race.- if (this._iFrameApi) {- await this.driver.waitUntil(- // @ts-ignore- () => this.execute(() => typeof APP !== 'undefined' && Boolean(APP.store)),- {- timeout: 30_000,- timeoutMsg: `Timeout waiting for embedded Jitsi app to initialize for ${this._name}.`- }- );- }+ // The prejoin Join button can be in the DOM before conference.init has run and React click+ // handlers are mounted (e.g. when driver.url() returns before the page fully loads on a slow+ // remote grid, or when the iFrame API wrapper fires onload before the embedded app inits).+ // APP.store is created during conference.init, so gate the click on it to avoid the race.+ await this.driver.waitUntil(+ // @ts-ignore+ () => this.execute(() => typeof APP !== 'undefined' && Boolean(APP.store)),+ {+ timeout: 30_000,+ timeoutMsg: `Timeout waiting for Jitsi app to initialize for ${this._name}.`+ }+ );// if prejoin is enabled we want to click the join buttonconst p1PreJoinScreen = this.getPreJoinScreen();