@wdio/runner 8.0.0-alpha.558 → 8.0.0-alpha.563

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":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,YAAY,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;AAE9D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;KAC3B;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAEpE,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,EAChB,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IAGnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IAiFT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAI1H"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,YAAY,MAAM,YAAY,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;AAE9D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;KAC3B;CACJ;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAEpE,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,EAChB,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IAGnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IAiFT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAI1H"}
package/build/browser.js CHANGED
@@ -4,6 +4,7 @@ import logger from '@wdio/logger';
4
4
  import { browser } from '@wdio/globals';
5
5
  const log = logger('@wdio/runner');
6
6
  const sep = '\n - ';
7
+ const sleep = (ms = 100) => new Promise((resolve) => setTimeout(resolve, ms));
7
8
  export default class BrowserFramework {
8
9
  _cid;
9
10
  _config;
@@ -43,7 +44,6 @@ export default class BrowserFramework {
43
44
  let failures = 0;
44
45
  for (const spec of this._specs) {
45
46
  log.info(`Run spec file ${spec} for cid ${this._cid}`);
46
- console.log(`Run spec file ${spec} for cid ${this._cid}`);
47
47
  await browser.url(`/${this._cid}/test.html?spec=${url.fileURLToPath(spec)}`);
48
48
  // await browser.debug()
49
49
  /**
@@ -72,6 +72,7 @@ export default class BrowserFramework {
72
72
  let failures = null;
73
73
  await browser.waitUntil(async () => {
74
74
  while (typeof failures !== 'number') {
75
+ await sleep();
75
76
  failures = await browser?.execute(() => (window.__wdioEvents__.length > 0
76
77
  ? window.__wdioFailures__
77
78
  : null));
package/build/index.js CHANGED
@@ -124,14 +124,14 @@ export default class Runner extends EventEmitter {
124
124
  /**
125
125
  * report sessionId and target connection information to worker
126
126
  */
127
- const { protocol, hostname, port, path, queryParams } = browser.options;
127
+ const { protocol, hostname, port, path, queryParams, automationProtocol } = browser.options;
128
128
  const { isW3C, sessionId } = browser;
129
129
  const instances = getInstancesData(browser, isMultiremote);
130
130
  process.send({
131
131
  origin: 'worker',
132
132
  name: 'sessionStarted',
133
133
  content: {
134
- sessionId, isW3C, protocol, hostname, port, path, queryParams, isMultiremote, instances,
134
+ automationProtocol, sessionId, isW3C, protocol, hostname, port, path, queryParams, isMultiremote, instances,
135
135
  capabilities: browser.capabilities,
136
136
  injectGlobals: this._config.injectGlobals
137
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "8.0.0-alpha.558+9156ec0f4",
3
+ "version": "8.0.0-alpha.563+01b1cdcb3",
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",
@@ -26,19 +26,19 @@
26
26
  "types": "./build/index.d.ts",
27
27
  "typeScriptVersion": "3.8.3",
28
28
  "dependencies": {
29
- "@wdio/config": "8.0.0-alpha.558+9156ec0f4",
30
- "@wdio/globals": "8.0.0-alpha.558+9156ec0f4",
31
- "@wdio/logger": "8.0.0-alpha.558+9156ec0f4",
32
- "@wdio/types": "8.0.0-alpha.558+9156ec0f4",
33
- "@wdio/utils": "8.0.0-alpha.558+9156ec0f4",
29
+ "@wdio/config": "8.0.0-alpha.563+01b1cdcb3",
30
+ "@wdio/globals": "8.0.0-alpha.563+01b1cdcb3",
31
+ "@wdio/logger": "8.0.0-alpha.563+01b1cdcb3",
32
+ "@wdio/types": "8.0.0-alpha.563+01b1cdcb3",
33
+ "@wdio/utils": "8.0.0-alpha.563+01b1cdcb3",
34
34
  "deepmerge-ts": "^4.2.2",
35
35
  "expect-webdriverio": "^4.0.0-alpha.3",
36
36
  "gaze": "^1.1.2",
37
- "webdriver": "8.0.0-alpha.558+9156ec0f4",
38
- "webdriverio": "8.0.0-alpha.558+9156ec0f4"
37
+ "webdriver": "8.0.0-alpha.563+01b1cdcb3",
38
+ "webdriverio": "8.0.0-alpha.563+01b1cdcb3"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "9156ec0f422b7e784ea148e569fe423ba21a0355"
43
+ "gitHead": "01b1cdcb32747d629c56fa2e7bb8b507f1ab16ec"
44
44
  }