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): Fail early and gather debug logs for iframe tests.

damenchof324122d93b3
diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts
index 799e9be34e..59adeb5a63 100644
--- a/tests/wdio.conf.ts
+++ b/tests/wdio.conf.ts
@@ -359,6 +359,16 @@ export const config: WebdriverIO.MultiremoteConfig = {
logInfo(multiremotebrowser.getInstance(instance), `---=== End test ${test.title} ===---`));
if (error) {
+
+ // skip all remaining tests in the suite
+ ctx.skipSuiteTests = `Test "${test.title}" has failed.`;
+
+ // make sure all browsers are at the main app in iframe (if used), so we collect debug info
+ await Promise.all(multiremotebrowser.instances.map(async (instance: string) => {
+ // @ts-ignore
+ await ctx[instance].switchToIFrame();
+ }));
+
const allProcessing: Promise<any>[] = [];
multiremotebrowser.instances.forEach((instance: string) => {