@wdio/browser-runner 8.0.0-alpha.508 → 8.0.0-alpha.516
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/index.d.ts.map +1 -1
- package/build/index.js +2 -3
- package/build/plugins/testrunner.d.ts.map +1 -1
- package/build/plugins/testrunner.js +12 -0
- package/package.json +11 -11
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,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAKzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAgB,MAAM,SAAS,CAAA;AAI/F,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;;IAMtC,OAAO,CAAC,OAAO;IAA8B,OAAO,CAAC,MAAM;gBAAnD,OAAO,EAAE,0BAA0B,EAAU,MAAM,EAAE,OAAO,CAAC,UAAU;IAW3F;;OAEG;IACG,UAAU;IAgChB,GAAG,CAAE,OAAO,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAKzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAgB,MAAM,SAAS,CAAA;AAI/F,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;;IAMtC,OAAO,CAAC,OAAO;IAA8B,OAAO,CAAC,MAAM;gBAAnD,OAAO,EAAE,0BAA0B,EAAU,MAAM,EAAE,OAAO,CAAC,UAAU;IAW3F;;OAEG;IACG,UAAU;IAgChB,GAAG,CAAE,OAAO,EAAE,OAAO;IA6BrB;;;;OAIG;IACG,QAAQ;CAOjB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,oBAAqB,SAAQ,0BAA0B;SAAG;KACvE;CACJ"}
|
package/build/index.js
CHANGED
|
@@ -71,9 +71,8 @@ export default class BrowserRunner extends LocalRunner {
|
|
|
71
71
|
injectGlobals: payload.content.injectGlobals
|
|
72
72
|
});
|
|
73
73
|
BROWSER_POOL.set(payload.cid, await attach({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
capabilities: payload.content.capabilities
|
|
74
|
+
...this.#config,
|
|
75
|
+
...payload.content
|
|
77
76
|
}));
|
|
78
77
|
}
|
|
79
78
|
if (payload.name === 'sessionEnded') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../src/plugins/testrunner.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"testrunner.d.ts","sourceRoot":"","sources":["../../src/plugins/testrunner.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AA+ClC,wBAAgB,UAAU,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,GAAG,MAAM,CAkH7E"}
|
|
@@ -29,6 +29,11 @@ const MODULES_TO_MOCK = [
|
|
|
29
29
|
'query-selector-shadow-dom/plugins/webdriverio/index.js',
|
|
30
30
|
'glob', 'devtools'
|
|
31
31
|
];
|
|
32
|
+
const FETCH_FROM_ESM = [
|
|
33
|
+
'serialize-error', 'minimatch', 'css-shorthand-properties', 'lodash.merge', 'lodash.zip',
|
|
34
|
+
'lodash.clonedeep', 'lodash.pickby', 'lodash.flattendeep', 'aria-query', 'grapheme-splitter',
|
|
35
|
+
'css-value', 'rgb2hex', 'p-iteration'
|
|
36
|
+
];
|
|
32
37
|
export function testrunner(options) {
|
|
33
38
|
const automationProtocolPath = path.resolve(__dirname, '..', 'browser', 'driver.js');
|
|
34
39
|
const mockModulePath = path.resolve(__dirname, '..', 'browser', 'mock.js');
|
|
@@ -59,6 +64,13 @@ export function testrunner(options) {
|
|
|
59
64
|
if (MODULES_TO_MOCK.includes(id)) {
|
|
60
65
|
return mockModulePath;
|
|
61
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* some dependencies used by WebdriverIO packages are still using CJS
|
|
69
|
+
* so we need to pull them from esm.sh to have them run in the browser
|
|
70
|
+
*/
|
|
71
|
+
if (FETCH_FROM_ESM.includes(id)) {
|
|
72
|
+
return `https://esm.sh/${id}`;
|
|
73
|
+
}
|
|
62
74
|
},
|
|
63
75
|
load(id) {
|
|
64
76
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.516+ef18eb180",
|
|
4
4
|
"description": "A WebdriverIO runner to run unit tests tests in the browser.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
31
31
|
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
32
32
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
33
|
-
"@wdio/globals": "8.0.0-alpha.
|
|
34
|
-
"@wdio/local-runner": "8.0.0-alpha.
|
|
35
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
36
|
-
"@wdio/mocha-framework": "8.0.0-alpha.
|
|
37
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
38
|
-
"@wdio/runner": "8.0.0-alpha.
|
|
39
|
-
"@wdio/types": "8.0.0-alpha.
|
|
33
|
+
"@wdio/globals": "8.0.0-alpha.516+ef18eb180",
|
|
34
|
+
"@wdio/local-runner": "8.0.0-alpha.516+ef18eb180",
|
|
35
|
+
"@wdio/logger": "8.0.0-alpha.516+ef18eb180",
|
|
36
|
+
"@wdio/mocha-framework": "8.0.0-alpha.516+ef18eb180",
|
|
37
|
+
"@wdio/protocols": "8.0.0-alpha.516+ef18eb180",
|
|
38
|
+
"@wdio/runner": "8.0.0-alpha.516+ef18eb180",
|
|
39
|
+
"@wdio/types": "8.0.0-alpha.516+ef18eb180",
|
|
40
40
|
"expect-webdriverio": "^4.0.0-alpha.6",
|
|
41
41
|
"get-port": "^6.1.2",
|
|
42
42
|
"vite": "^3.1.7",
|
|
43
43
|
"vite-plugin-top-level-await": "^1.2.1",
|
|
44
|
-
"webdriver": "8.0.0-alpha.
|
|
45
|
-
"webdriverio": "8.0.0-alpha.
|
|
44
|
+
"webdriver": "8.0.0-alpha.516+ef18eb180",
|
|
45
|
+
"webdriverio": "8.0.0-alpha.516+ef18eb180",
|
|
46
46
|
"ws": "^8.10.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/ws": "^8.5.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ef18eb180b61077d44a307c0410593930101e842"
|
|
58
58
|
}
|