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 an option to use a different tenant for iframeAPI.

damenchoc7c42f69837f
diff --git a/tests/env.example b/tests/env.example
index a268bca884..1ea9132d2c 100644
--- a/tests/env.example
+++ b/tests/env.example
@@ -18,8 +18,8 @@
# The path to the browser video capture file
#VIDEO_CAPTURE_FILE=tests/resources/FourPeople_1280x720_30.y4m
-# The path to the helper iframe page that will be used for the iframeAPI tests
-#IFRAME_PAGE_BASE=
+# The tenant used when executing the iframeAPI tests, will override any tenant from BASE_URL if any
+#IFRAME_TENANT=
# The grid host url (https://mygrid.com/wd/hub)
#GRID_HOST_URL=
diff --git a/tests/helpers/Participant.ts b/tests/helpers/Participant.ts
index 0d04a24475..8e5fd6692d 100644
--- a/tests/helpers/Participant.ts
+++ b/tests/helpers/Participant.ts
@@ -195,7 +195,9 @@ export class Participant {
// @ts-ignore
url = `${this.driver.iframePageBase}${url}&domain="${baseUrl.host}"&room="${ctx.roomName}"`;
- if (baseUrl.pathname.length > 1) {
+ if (process.env.IFRAME_TENANT) {
+ url = `${url}&tenant="${process.env.IFRAME_TENANT}"`;
+ } else if (baseUrl.pathname.length > 1) {
// remove leading slash
url = `${url}&tenant="${baseUrl.pathname.substring(1)}"`;
}