Skip to content

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

fix(tests): Adds undefined checks.

damencho23b7dd4abfab
diff --git a/tests/pageobjects/LargeVideo.ts b/tests/pageobjects/LargeVideo.ts
index db63dc8b8b..ee9597e40d 100644
--- a/tests/pageobjects/LargeVideo.ts
+++ b/tests/pageobjects/LargeVideo.ts
@@ -46,10 +46,9 @@ export default class LargeVideo extends BasePageObject {
* Returns the source of the large video currently shown.
*/
getId() {
- return this.participant.execute('return document.getElementById("largeVideo").srcObject.id');
+ return this.participant.execute(() => document.getElementById('largeVideo')?.srcObject?.id);
}
-
/**
* Checks if the large video is playing or not.
*