@wdio/browser-runner 8.0.0-alpha.621 → 8.0.0-alpha.629
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/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAInD,wBAAgB,YAAY,CAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAInD,wBAAgB,YAAY,CAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CA0C/H"}
|
package/build/utils.js
CHANGED
|
@@ -7,7 +7,13 @@ export function makeHeadless(options, caps) {
|
|
|
7
7
|
throw new Error('No "browserName" defined in capability object. It seems you are trying to run tests ' +
|
|
8
8
|
'in a non web environment, however WebdriverIOs browser runner only supports web environments');
|
|
9
9
|
}
|
|
10
|
-
if (
|
|
10
|
+
if (
|
|
11
|
+
// either user sets headless option implicitly
|
|
12
|
+
(typeof options.headless === 'boolean' && !options.headless) ||
|
|
13
|
+
// or CI environment is set
|
|
14
|
+
(typeof process.env.CI !== 'undefined' && !process.env.CI) ||
|
|
15
|
+
// or non are set
|
|
16
|
+
(typeof options.headless !== 'boolean' && typeof process.env.CI === 'undefined')) {
|
|
11
17
|
return caps;
|
|
12
18
|
}
|
|
13
19
|
if (capability.browserName === 'chrome') {
|
|
@@ -24,7 +30,7 @@ export function makeHeadless(options, caps) {
|
|
|
24
30
|
}
|
|
25
31
|
});
|
|
26
32
|
}
|
|
27
|
-
else if (capability.browserName === 'msedge') {
|
|
33
|
+
else if (capability.browserName === 'msedge' || capability.browserName === 'edge') {
|
|
28
34
|
return deepmerge(capability, {
|
|
29
35
|
'ms:edgeOptions': {
|
|
30
36
|
args: ['--headless']
|
|
@@ -115,7 +115,7 @@ export function testrunner(options) {
|
|
|
115
115
|
res.end(await server.transformIndexHtml(`${req.url}`, template));
|
|
116
116
|
}
|
|
117
117
|
catch (err) {
|
|
118
|
-
const template =
|
|
118
|
+
const template = getErrorTemplate(req.url, err);
|
|
119
119
|
log.error(`Failed to render template: ${err.message}`);
|
|
120
120
|
res.end(await server.transformIndexHtml(`${req.url}`, template));
|
|
121
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAa,MAAM,IAAI,CAAA;AAG/C,OAAO,EAA+B,YAAY,EAAE,MAAM,MAAM,CAAA;AAchE,qBAAa,UAAU;;IAOnB,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB;IAiBhD,KAAK;IAuCL,KAAK;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/vite/server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAa,MAAM,IAAI,CAAA;AAG/C,OAAO,EAA+B,YAAY,EAAE,MAAM,MAAM,CAAA;AAchE,qBAAa,UAAU;;IAOnB,IAAI,YAAY,gCAEf;IAED,IAAI,MAAM,0BAET;gBAEY,OAAO,EAAE,WAAW,CAAC,oBAAoB;IAiBhD,KAAK;IAuCL,KAAK;CAiGd"}
|
package/build/vite/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Environment, FrameworkPreset } from '../types';
|
|
2
2
|
export declare function getTemplate(options: WebdriverIO.BrowserRunnerOptions, env: Environment, spec: string): Promise<string>;
|
|
3
3
|
export declare function userfriendlyImport(preset: FrameworkPreset, pkg?: string): Promise<any>;
|
|
4
|
-
export declare function getErrorTemplate(filename: string, error: Error):
|
|
4
|
+
export declare function getErrorTemplate(filename: string, error: Error): string;
|
|
5
5
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE5D,wBAAsB,WAAW,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBA6D3G;AAED,wBAAsB,kBAAkB,CAAE,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,gBAa9E;AAED,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/vite/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE5D,wBAAsB,WAAW,CAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,mBA6D3G;AAED,wBAAsB,kBAAkB,CAAE,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,EAAE,MAAM,gBAa9E;AAED,wBAAgB,gBAAgB,CAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,UAU/D"}
|
package/build/vite/utils.js
CHANGED
|
@@ -72,7 +72,7 @@ export async function userfriendlyImport(preset, pkg) {
|
|
|
72
72
|
`Please run:\n\n\tnpm install ${pkg}\n\tor\n\tyarn add --dev ${pkg}`);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
export
|
|
75
|
+
export function getErrorTemplate(filename, error) {
|
|
76
76
|
return /*html*/ `
|
|
77
77
|
<pre>${error.stack}</pre>
|
|
78
78
|
<script type="module">
|
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.629+3481c8ac3",
|
|
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",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
|
|
32
32
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
33
33
|
"@types/mocha": "^10.0.0",
|
|
34
|
-
"@wdio/globals": "8.0.0-alpha.
|
|
35
|
-
"@wdio/local-runner": "8.0.0-alpha.
|
|
36
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
37
|
-
"@wdio/mocha-framework": "8.0.0-alpha.
|
|
38
|
-
"@wdio/protocols": "8.0.0-alpha.
|
|
39
|
-
"@wdio/runner": "8.0.0-alpha.
|
|
40
|
-
"@wdio/types": "8.0.0-alpha.
|
|
41
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
34
|
+
"@wdio/globals": "8.0.0-alpha.629+3481c8ac3",
|
|
35
|
+
"@wdio/local-runner": "8.0.0-alpha.629+3481c8ac3",
|
|
36
|
+
"@wdio/logger": "8.0.0-alpha.629+3481c8ac3",
|
|
37
|
+
"@wdio/mocha-framework": "8.0.0-alpha.629+3481c8ac3",
|
|
38
|
+
"@wdio/protocols": "8.0.0-alpha.629+3481c8ac3",
|
|
39
|
+
"@wdio/runner": "8.0.0-alpha.629+3481c8ac3",
|
|
40
|
+
"@wdio/types": "8.0.0-alpha.629+3481c8ac3",
|
|
41
|
+
"@wdio/utils": "8.0.0-alpha.629+3481c8ac3",
|
|
42
42
|
"deepmerge-ts": "^4.2.2",
|
|
43
43
|
"expect-webdriverio": "^4.0.0-alpha.6",
|
|
44
44
|
"fast-safe-stringify": "^2.1.1",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"serialize-error": "^11.0.0",
|
|
48
48
|
"vite": "^3.1.7",
|
|
49
49
|
"vite-plugin-top-level-await": "^1.2.1",
|
|
50
|
-
"webdriver": "8.0.0-alpha.
|
|
51
|
-
"webdriverio": "8.0.0-alpha.
|
|
50
|
+
"webdriver": "8.0.0-alpha.629+3481c8ac3",
|
|
51
|
+
"webdriverio": "8.0.0-alpha.629+3481c8ac3",
|
|
52
52
|
"ws": "^8.10.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/ws": "^8.5.3"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3481c8ac3cfa6ed7965eb9de0b4f2d2dfe4ab7c2"
|
|
64
64
|
}
|