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 debug logs on failure.

damencho5d72028872b2
diff --git a/tests/wdio.conf.ts b/tests/wdio.conf.ts
index c5b934cd45..15057bdc95 100644
--- a/tests/wdio.conf.ts
+++ b/tests/wdio.conf.ts
@@ -323,6 +323,14 @@ export const config: WebdriverIO.MultiremoteConfig = {
'image/png');
}));
+ // @ts-ignore
+ allProcessing.push(bInstance.execute(() => typeof APP !== 'undefined' && APP.connection?.getLogs())
+ .then(logs =>
+ logs && AllureReporter.addAttachment(
+ `debug-logs-${instance}`,
+ JSON.stringify(logs, null, ' '),
+ 'text/plain'))
+ .catch(e => console.error('Failed grabbing debug logs', e)));
AllureReporter.addAttachment(`console-logs-${instance}`, getLogs(bInstance) || '', 'text/plain');
@@ -331,7 +339,7 @@ export const config: WebdriverIO.MultiremoteConfig = {
}));
});
- await Promise.all(allProcessing);
+ await Promise.allSettled(allProcessing);
}
},