fix(tests): Fix reference to APP in debug logs retrieval

Avoids `ReferenceError: APP is not defined` the failure may happen after hangup where APP is not defined.
This commit is contained in:
Дамян Минков
2025-10-23 11:26:17 -05:00
parent c610e955cd
commit f8f331a576

View File

@@ -403,7 +403,7 @@ export const config: WebdriverIO.MultiremoteConfig = {
.catch(e => console.error('Failed grabbing debug logs', e)));
allProcessing.push(
bInstance.execute(() => APP?.debugLogs?.logs?.join('\n')).then(res => {
bInstance.execute(() => window.APP?.debugLogs?.logs?.join('\n')).then(res => {
if (res) {
saveLogs(bInstance, res);
}