@wdio/runner 8.13.12 → 8.14.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.
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAM1F,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;AAO9G,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;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAKpE,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,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IASnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IAyKT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAA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E,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAItH"}
package/build/browser.js CHANGED
@@ -54,103 +54,112 @@ export default class BrowserFramework {
54
54
  }
55
55
  }
56
56
  async #loop() {
57
- const timeout = this._config.mochaOpts?.timeout || DEFAULT_TIMEOUT;
58
57
  /**
59
58
  * start tests
60
59
  */
61
60
  let failures = 0;
62
61
  for (const spec of this._specs) {
63
- log.info(`Run spec file ${spec} for cid ${this._cid}`);
64
- /**
65
- * if a `sessionId` is part of `this._config` it means we are in watch mode and are
66
- * re-using a previous session. Since Vite has already a hotreload feature, there
67
- * is no need to call the url command again
68
- */
69
- if (!this._config.sessionId) {
70
- await browser.url(`/?cid=${this._cid}&spec=${url.parse(spec).pathname}`);
71
- }
72
- // await browser.debug()
73
- /**
74
- * set spec and cid as cookie so the Vite plugin can detect session even without
75
- * query parameters
76
- */
77
- await browser.setCookies([
78
- { name: 'WDIO_SPEC', value: url.fileURLToPath(spec) },
79
- { name: 'WDIO_CID', value: this._cid }
80
- ]);
81
- /**
82
- * wait for test results or page errors
83
- */
84
- let state = {};
85
- const now = Date.now();
86
- await browser.waitUntil(async () => {
87
- while (typeof state.failures !== 'number' && (!state.errors || state.errors.length === 0)) {
88
- if ((Date.now() - now) > timeout) {
89
- return false;
90
- }
91
- await sleep();
92
- /**
93
- * don't fetch events if user has called debug command
94
- */
95
- if (this.#inDebugMode) {
96
- continue;
97
- }
98
- state = await browser?.execute(function fetchExecutionState() {
99
- const failures = window.__wdioEvents__ && window.__wdioEvents__.length > 0
100
- ? window.__wdioFailures__
101
- : null;
102
- let viteError;
103
- const viteErrorElem = document.querySelector('vite-error-overlay');
104
- if (viteErrorElem && viteErrorElem.shadowRoot) {
105
- const errorElems = Array.from(viteErrorElem.shadowRoot.querySelectorAll('pre'));
106
- if (errorElems.length) {
107
- viteError = [{ message: errorElems.map((elem) => elem.innerText).join('\n') }];
108
- }
109
- }
110
- const loadError = (typeof window.__wdioErrors__ === 'undefined' &&
111
- document.title !== 'WebdriverIO Browser Test' &&
112
- !document.querySelector('mocha-framework'))
113
- ? [{ message: `Failed to load test page (title = "${document.title}", source: ${document.documentElement.innerHTML})` }]
114
- : null;
115
- const errors = viteError || window.__wdioErrors__ || loadError;
116
- return { failures, errors, hasViteError: Boolean(viteError) };
117
- }).catch((err) => ({ errors: [{ message: err.message }] }));
62
+ failures += await this.#runSpec(spec);
63
+ }
64
+ return failures;
65
+ }
66
+ async #runSpec(spec, retried = false) {
67
+ const timeout = this._config.mochaOpts?.timeout || DEFAULT_TIMEOUT;
68
+ log.info(`Run spec file ${spec} for cid ${this._cid}`);
69
+ /**
70
+ * if a `sessionId` is part of `this._config` it means we are in watch mode and are
71
+ * re-using a previous session. Since Vite has already a hotreload feature, there
72
+ * is no need to call the url command again
73
+ */
74
+ if (!this._config.sessionId) {
75
+ await browser.url(`/?cid=${this._cid}&spec=${url.parse(spec).pathname}`);
76
+ }
77
+ // await browser.debug()
78
+ /**
79
+ * set spec and cid as cookie so the Vite plugin can detect session even without
80
+ * query parameters
81
+ */
82
+ await browser.setCookies([
83
+ { name: 'WDIO_SPEC', value: url.fileURLToPath(spec) },
84
+ { name: 'WDIO_CID', value: this._cid }
85
+ ]);
86
+ /**
87
+ * wait for test results or page errors
88
+ */
89
+ let state = {};
90
+ const now = Date.now();
91
+ await browser.waitUntil(async () => {
92
+ while (typeof state.failures !== 'number' && (!state.errors || state.errors.length === 0)) {
93
+ if ((Date.now() - now) > timeout) {
94
+ return false;
95
+ }
96
+ await sleep();
97
+ /**
98
+ * don't fetch events if user has called debug command
99
+ */
100
+ if (this.#inDebugMode) {
101
+ continue;
118
102
  }
119
- return true;
120
- }, {
121
- timeoutMsg: 'browser test timed out',
122
- timeout
103
+ state = await browser?.execute(function fetchExecutionState() {
104
+ const failures = window.__wdioEvents__ && window.__wdioEvents__.length > 0
105
+ ? window.__wdioFailures__
106
+ : null;
107
+ let viteError;
108
+ const viteErrorElem = document.querySelector('vite-error-overlay');
109
+ if (viteErrorElem && viteErrorElem.shadowRoot) {
110
+ const errorElems = Array.from(viteErrorElem.shadowRoot.querySelectorAll('pre'));
111
+ if (errorElems.length) {
112
+ viteError = [{ message: errorElems.map((elem) => elem.innerText).join('\n') }];
113
+ }
114
+ }
115
+ const loadError = (typeof window.__wdioErrors__ === 'undefined' &&
116
+ document.title !== 'WebdriverIO Browser Test' &&
117
+ !document.querySelector('mocha-framework'))
118
+ ? [{ message: `Failed to load test page (title = "${document.title}", source: ${document.documentElement.innerHTML})` }]
119
+ : null;
120
+ const errors = viteError || window.__wdioErrors__ || loadError;
121
+ return { failures, errors, hasViteError: Boolean(viteError) };
122
+ }).catch((err) => ({ errors: [{ message: err.message }] }));
123
+ }
124
+ return true;
125
+ }, {
126
+ timeoutMsg: 'browser test timed out',
127
+ timeout
128
+ });
129
+ /**
130
+ * capture coverage if enabled
131
+ */
132
+ if (this.#runnerOptions.coverage?.enabled && process.send) {
133
+ const coverageMap = await browser.execute(() => (window.__coverage__ || {}));
134
+ process.send({
135
+ origin: 'worker',
136
+ name: 'coverageMap',
137
+ content: { coverageMap }
123
138
  });
139
+ }
140
+ if (state.errors?.length) {
141
+ const errors = state.errors.map((ev) => state.hasViteError
142
+ ? `${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`
143
+ : `${path.basename(ev.filename || spec)}: ${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`);
124
144
  /**
125
- * capture coverage if enabled
145
+ * retry Vite dynamic import errors once
126
146
  */
127
- if (this.#runnerOptions.coverage?.enabled && process.send) {
128
- const coverageMap = await browser.execute(() => (window.__coverage__ || {}));
129
- process.send({
130
- origin: 'worker',
131
- name: 'coverageMap',
132
- content: { coverageMap }
133
- });
134
- }
135
- if (state.errors?.length) {
136
- const errors = state.errors.map((ev) => state.hasViteError
137
- ? `${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`
138
- : `${path.basename(ev.filename || spec)}: ${ev.message}\n${(ev.error ? ev.error.split('\n').slice(1).join('\n') : '')}`);
139
- const { name, message, stack } = new Error(state.hasViteError
140
- ? `Test failed due to the following error: ${errors.join('\n\n')}`
141
- : `Test failed due to following error(s):${sep}${errors.join(sep)}`);
142
- process.send({
143
- origin: 'worker',
144
- name: 'error',
145
- content: { name, message, stack }
146
- });
147
- failures += 1;
148
- continue;
147
+ if (!retried && errors.some((err) => err.includes('Failed to fetch dynamically imported module'))) {
148
+ log.info('Retry test run due to dynamic import error');
149
+ return this.#runSpec(spec, true);
149
150
  }
150
- await this.#fetchEvents(browser, spec);
151
- failures += state.failures || 0;
151
+ const { name, message, stack } = new Error(state.hasViteError
152
+ ? `Test failed due to the following error: ${errors.join('\n\n')}`
153
+ : `Test failed due to following error(s):${sep}${errors.join(sep)}`);
154
+ process.send({
155
+ origin: 'worker',
156
+ name: 'error',
157
+ content: { name, message, stack }
158
+ });
159
+ return 1;
152
160
  }
153
- return failures;
161
+ await this.#fetchEvents(browser, spec);
162
+ return state.failures || 0;
154
163
  }
155
164
  async #fetchEvents(browser, spec) {
156
165
  /**
@@ -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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O,EAAE,EAAE,SAAS;IAiLpE;;;;;;OAMG;YACW,YAAY;IAkC1B;;;;;OAKG;YACW,aAAa;IAyD3B;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;YACW,SAAS;IAmCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAuEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
package/build/index.js CHANGED
@@ -125,7 +125,7 @@ export default class Runner extends EventEmitter {
125
125
  /**
126
126
  * report sessionId and target connection information to worker
127
127
  */
128
- const { protocol, hostname, port, path, queryParams, automationProtocol } = browser.options;
128
+ const { protocol, hostname, port, path, queryParams, automationProtocol, headers } = browser.options;
129
129
  const { isW3C, sessionId } = browser;
130
130
  const instances = getInstancesData(browser, isMultiremote);
131
131
  process.send({
@@ -134,7 +134,8 @@ export default class Runner extends EventEmitter {
134
134
  content: {
135
135
  automationProtocol, sessionId, isW3C, protocol, hostname, port, path, queryParams, isMultiremote, instances,
136
136
  capabilities: browser.capabilities,
137
- injectGlobals: this._config.injectGlobals
137
+ injectGlobals: this._config.injectGlobals,
138
+ headers
138
139
  }
139
140
  });
140
141
  /**
package/build/types.d.ts CHANGED
@@ -39,6 +39,7 @@ export interface SessionStartedMessage {
39
39
  hostname: string;
40
40
  port: number;
41
41
  path: string;
42
+ headers: Record<string, string>;
42
43
  isMultiremote: boolean;
43
44
  injectGlobals: boolean;
44
45
  capabilities: Capabilities.Capabilities;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAClE,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAE7C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,C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,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACtC,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC7D,aAAa,EAAE,OAAO,oDAgBzB"}
package/build/utils.js CHANGED
@@ -49,7 +49,8 @@ export async function initialiseInstance(config, capabilities, isMultiremote) {
49
49
  port: caps.port || config.port,
50
50
  path: caps.path || config.path
51
51
  };
52
- return attach({ ...config, ...connectionProps, capabilities });
52
+ const params = { ...config, ...connectionProps, capabilities };
53
+ return attach({ ...params, options: params });
53
54
  }
54
55
  if (!isMultiremote) {
55
56
  log.debug('init remote session');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "8.13.12",
3
+ "version": "8.14.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": "^20.1.0",
33
- "@wdio/config": "8.12.1",
34
- "@wdio/globals": "8.13.12",
33
+ "@wdio/config": "8.14.0",
34
+ "@wdio/globals": "8.14.0",
35
35
  "@wdio/logger": "8.11.0",
36
- "@wdio/types": "8.10.4",
37
- "@wdio/utils": "8.12.1",
36
+ "@wdio/types": "8.14.0",
37
+ "@wdio/utils": "8.14.0",
38
38
  "deepmerge-ts": "^5.0.0",
39
39
  "expect-webdriverio": "^4.2.5",
40
40
  "gaze": "^1.1.2",
41
- "webdriver": "8.13.1",
42
- "webdriverio": "8.13.12"
41
+ "webdriver": "8.14.0",
42
+ "webdriverio": "8.14.0"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "bd86d6975458ad8bba3fd87f2af505e1537204db"
47
+ "gitHead": "cb2092b007e6d2ac23a49aa30dae67d70e45906d"
48
48
  }