@wdio/runner 8.41.0 → 8.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.d.ts.map +1 -1
- package/build/browser.js +23 -6
- package/build/index.d.ts.map +1 -1
- package/build/index.js +11 -1
- package/package.json +6 -6
package/build/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAgB,KAAK,OAAO,EAAgC,MAAM,aAAa,CAAA;AAGzG,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,YAAY,CAAA;AAOtE,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAe9G,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;QACxB,YAAY,CAAC,EAAE,OAAO,CAAA;KACzB;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAMpE,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;gBAJT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,CAAC,UAAU,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EACpD,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAg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E,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAItH"}
|
package/build/browser.js
CHANGED
|
@@ -356,7 +356,9 @@ export default class BrowserFramework {
|
|
|
356
356
|
const logs = typeof browser.getLogs === 'function'
|
|
357
357
|
? (await browser.getLogs('browser').catch(() => []))
|
|
358
358
|
: [];
|
|
359
|
-
const severeLogs = logs
|
|
359
|
+
const severeLogs = logs
|
|
360
|
+
.filter((log) => log.level === 'SEVERE')
|
|
361
|
+
.filter((log) => log.source !== 'deprecation');
|
|
360
362
|
if (severeLogs.length) {
|
|
361
363
|
if (!this.#retryOutdatedOptimizeDep && severeLogs.some((log) => log.message?.includes('(Outdated Optimize Dep)'))) {
|
|
362
364
|
log.info('Retry test run due to outdated optimize dep');
|
|
@@ -372,11 +374,26 @@ export default class BrowserFramework {
|
|
|
372
374
|
* "http://localhost:40167/node_modules/.vite/deps/expect.js?v=bca8e2f3 - Failed to load resource: the server responded with a status of 504 (Outdated Optimize Dep)"
|
|
373
375
|
*/
|
|
374
376
|
errors: severeLogs.map((log) => {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
let [filename, message] = log.message.split(' - ');
|
|
378
|
+
/**
|
|
379
|
+
* if message is undefined we may deal with a Chrome deprecation
|
|
380
|
+
* error, e.g.:
|
|
381
|
+
* ```
|
|
382
|
+
* {
|
|
383
|
+
* level: 'SEVERE',
|
|
384
|
+
* message: "http://localhost:62926/node_modules/.vite/deps/chunk-LJR7SBTM.js?v=e55c8c2d 24113 Listener added for a 'DOMCharacterDataModified' mutation event. Support for this event type has been removed, and this event will no longer be fired. See https://chromestatus.com/feature/5083947249172480 for more information.",
|
|
385
|
+
* source: 'deprecation',
|
|
386
|
+
* timestamp: 1735579907909
|
|
387
|
+
* }
|
|
388
|
+
* ``
|
|
389
|
+
*/
|
|
390
|
+
if (!message) {
|
|
391
|
+
message = filename.split(' ').slice(1).join(' ');
|
|
392
|
+
filename = filename.split(' ')[0];
|
|
393
|
+
}
|
|
394
|
+
return filename.startsWith('http')
|
|
395
|
+
? { filename, message }
|
|
396
|
+
: { filename: '', message: log.message };
|
|
380
397
|
})
|
|
381
398
|
});
|
|
382
399
|
}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAGxE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA+B;IAC7C,OAAO,CAAC,gBAAgB,CAAC,CAA6C;IAEtE;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IAqMpE;;;;;;OAMG;YACW,YAAY;IAkC1B;;;;;OAKG;YACW,aAAa;IAqE3B;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;YACW,SAAS;IAmCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAGxE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA+B;IAC7C,OAAO,CAAC,gBAAgB,CAAC,CAA6C;IAEtE;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IAqMpE;;;;;;OAMG;YACW,YAAY;IAkC1B;;;;;OAKG;YACW,aAAa;IAqE3B;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;YACW,SAAS;IAmCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAgFjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -422,7 +422,17 @@ export default class Runner extends EventEmitter {
|
|
|
422
422
|
capabilities[browserName] = multiremoteBrowser.getInstance(browserName).capabilities;
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
try {
|
|
426
|
+
await this._browser?.deleteSession();
|
|
427
|
+
}
|
|
428
|
+
catch (err) {
|
|
429
|
+
/**
|
|
430
|
+
* ignoring all exceptions that could be caused by browser.deleteSession()
|
|
431
|
+
* there maybe times where session is ended remotely, browser.deleteSession() will fail in this case)
|
|
432
|
+
* this can be worked around in code but requires a lot of overhead
|
|
433
|
+
*/
|
|
434
|
+
log.warn(`Suppressing error closing the session: ${err.message}`);
|
|
435
|
+
}
|
|
426
436
|
process.send({
|
|
427
437
|
origin: 'worker',
|
|
428
438
|
name: 'sessionEnded',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.43.0",
|
|
4
4
|
"description": "A WebdriverIO service that runs tests in arbitrary environments",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"typeScriptVersion": "3.8.3",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@types/node": "^22.2.0",
|
|
33
|
-
"@wdio/config": "8.
|
|
34
|
-
"@wdio/globals": "8.
|
|
33
|
+
"@wdio/config": "8.43.0",
|
|
34
|
+
"@wdio/globals": "8.43.0",
|
|
35
35
|
"@wdio/logger": "8.38.0",
|
|
36
36
|
"@wdio/types": "8.41.0",
|
|
37
37
|
"@wdio/utils": "8.41.0",
|
|
38
38
|
"deepmerge-ts": "^5.1.0",
|
|
39
39
|
"expect-webdriverio": "^4.12.0",
|
|
40
40
|
"gaze": "^1.1.3",
|
|
41
|
-
"webdriver": "8.
|
|
42
|
-
"webdriverio": "8.
|
|
41
|
+
"webdriver": "8.43.0",
|
|
42
|
+
"webdriverio": "8.43.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f3783f61e0c62001cda71231fb4d947951f6f10d"
|
|
48
48
|
}
|