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): Adds a debug print for document ready.

damencho66dc158c2283
diff --git a/tests/helpers/Participant.ts b/tests/helpers/Participant.ts
index 8deb5c62a6..d8189889f4 100644
--- a/tests/helpers/Participant.ts
+++ b/tests/helpers/Participant.ts
@@ -300,7 +300,11 @@ export class Participant {
*/
async waitForPageToLoad(): Promise<boolean> {
return this.driver.waitUntil(
- () => this.execute(() => document.readyState === 'complete'),
+ () => this.execute(() => {
+ console.log(`${new Date().toISOString()} document.readyState: ${document.readyState}`);
+
+ return document.readyState === 'complete';
+ }),
{
timeout: 30_000, // 30 seconds
timeoutMsg: `Timeout waiting for Page Load Request to complete for ${this.name}.`