@serenity-js/webdriverio 3.0.0-rc.40 → 3.0.0-rc.42
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-rc.42](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.41...v3.0.0-rc.42) (2023-02-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** event TestRunFinished now incidates the Outcome of the test suite ([a941056](https://github.com/serenity-js/serenity-js/commit/a9410566891e543101b935a80db9c7daea0c9944)), closes [#1495](https://github.com/serenity-js/serenity-js/issues/1495)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.0.0-rc.41](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.40...v3.0.0-rc.41) (2023-02-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **core:** better assertion errors reporting in Visual Studio Code ([3b94b7d](https://github.com/serenity-js/serenity-js/commit/3b94b7d606fae49e7ca77c2fbe09d07eeb042ea9)), closes [#1486](https://github.com/serenity-js/serenity-js/issues/1486)
|
|
23
|
+
* **webdriverio:** improved assertion error reporting for WebdriverIO ([7513752](https://github.com/serenity-js/serenity-js/commit/75137526c70d92869c87a127454c5b90a9948b87)), closes [#1102](https://github.com/serenity-js/serenity-js/issues/1102)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [3.0.0-rc.40](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.39...v3.0.0-rc.40) (2023-01-06)
|
|
7
30
|
|
|
8
31
|
**Note:** Version bump only for package @serenity-js/webdriverio
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOFrameworkAdapter.d.ts","sourceRoot":"","sources":["../../src/adapter/WebdriverIOFrameworkAdapter.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"WebdriverIOFrameworkAdapter.d.ts","sourceRoot":"","sources":["../../src/adapter/WebdriverIOFrameworkAdapter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAuC,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,OAAO,EAA+B,oBAAoB,EAAsB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGxH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,qBAAa,2BAA2B;IAMhC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAEpB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAVjC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,QAAQ,CAAsB;gBAGjB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,MAAM,EAC5B,iBAAiB,EAAE,iBAAiB,EACnB,KAAK,EAAE,MAAM,EAAE,EACf,YAAY,EAAE,YAAY,CAAC,gBAAgB,EAC5D,QAAQ,EAAE,YAAY,GAAG,mBAAmB,GAAG,oBAAoB;IAqDjE,IAAI,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAOlD,QAAQ,IAAI,OAAO;IAIb,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;IAK5B,OAAO,CAAC,aAAa;CASxB"}
|
|
@@ -10,6 +10,7 @@ const WebdriverIONotifier_1 = require("./WebdriverIONotifier");
|
|
|
10
10
|
const deepmerge = require("deepmerge");
|
|
11
11
|
class WebdriverIOFrameworkAdapter {
|
|
12
12
|
constructor(serenity, loader, cwd, cid, webdriverIOConfig, specs, capabilities, reporter) {
|
|
13
|
+
var _a;
|
|
13
14
|
this.serenity = serenity;
|
|
14
15
|
this.loader = loader;
|
|
15
16
|
this.cwd = cwd;
|
|
@@ -39,6 +40,7 @@ class WebdriverIOFrameworkAdapter {
|
|
|
39
40
|
outputStream: outputStreamBuffer,
|
|
40
41
|
cueTimeout: config.serenity.cueTimeout,
|
|
41
42
|
actors: config.serenity.actors,
|
|
43
|
+
diffFormatter: (_a = config.serenity.diffFormatter) !== null && _a !== void 0 ? _a : new core_1.AnsiDiffFormatter(),
|
|
42
44
|
crew: [
|
|
43
45
|
...config.serenity.crew,
|
|
44
46
|
this.notifier,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebdriverIOFrameworkAdapter.js","sourceRoot":"","sources":["../../src/adapter/WebdriverIOFrameworkAdapter.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"WebdriverIOFrameworkAdapter.js","sourceRoot":"","sources":["../../src/adapter/WebdriverIOFrameworkAdapter.ts"],"names":[],"mappings":";;;AAAA,4CAAkF;AAKlF,oDAAkD;AAElD,yCAAwH;AACxH,oFAAiF;AACjF,yDAAsD;AAEtD,+DAA4D;AAC5D,uCAAwC;AAExC,MAAa,2BAA2B;IAKpC,YACqB,QAAkB,EAClB,MAAoB,EACpB,GAAS,EACT,GAAW,EAC5B,iBAAoC,EACnB,KAAe,EACf,YAA2C,EAC5D,QAAmE;;QAPlD,aAAQ,GAAR,QAAQ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M,CAAC,QAAQ,CAAC,UAAU;YAC1C,MAAM,EAAU,MAAM,CAAC,QAAQ,CAAC,MAAM;YACtC,aAAa,EAAG,MAAA,MAAM,CAAC,QAAQ,CAAC,aAAa,mCAAI,IAAI,wBAAiB,EAAE;YACxE,IAAI,EAAE;gBACF,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI;gBACvB,IAAI,CAAC,QAAQ;gBACb,yBAAyB;aAC5B;SACJ,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,IAAI;QAEN,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,GAAG;QACL,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;IACxC,CAAC;IAEO,aAAa;QACjB,OAAO;YACH,QAAQ,EAAE;gBACN,IAAI,EAAE;oBACF,uBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,sBAAsB,CAAC;iBAC9E;aACJ;SACJ,CAAA;IACL,CAAC;CACJ;AA3FD,kEA2FC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/webdriverio",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.42",
|
|
4
4
|
"description": "Serenity/JS reporter and Screenplay Pattern library for WebdriverIO",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"npm": "^6 || ^7 || ^8"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@serenity-js/core": "3.0.0-rc.
|
|
51
|
-
"@serenity-js/web": "3.0.0-rc.
|
|
50
|
+
"@serenity-js/core": "3.0.0-rc.42",
|
|
51
|
+
"@serenity-js/web": "3.0.0-rc.42",
|
|
52
52
|
"@wdio/reporter": "^7.29.1",
|
|
53
53
|
"@wdio/types": "^7.26.0",
|
|
54
54
|
"deepmerge": "^4.2.2",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@serenity-js/cucumber": "^3.0.0-rc",
|
|
59
59
|
"@serenity-js/jasmine": "^3.0.0-rc",
|
|
60
60
|
"@serenity-js/mocha": "^3.0.0-rc",
|
|
61
|
-
"@wdio/cli": "^7.
|
|
62
|
-
"webdriverio": "^7.
|
|
61
|
+
"@wdio/cli": "^7.30.1",
|
|
62
|
+
"webdriverio": "^7.30.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@serenity-js/cucumber": {
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@integration/testing-tools": "3.0.0",
|
|
77
77
|
"@types/mocha": "^10.0.1",
|
|
78
|
-
"@wdio/cli": "^7.
|
|
79
|
-
"@wdio/devtools-service": "^7.
|
|
78
|
+
"@wdio/cli": "^7.30.1",
|
|
79
|
+
"@wdio/devtools-service": "^7.30.1",
|
|
80
80
|
"@wdio/dot-reporter": "^7.29.1",
|
|
81
|
-
"@wdio/local-runner": "^7.
|
|
81
|
+
"@wdio/local-runner": "^7.30.1",
|
|
82
82
|
"@wdio/mocha-framework": "^7.26.0",
|
|
83
83
|
"@wdio/spec-reporter": "^7.29.1",
|
|
84
84
|
"axios": "^1.2.2",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"mocha": "^10.2.0",
|
|
87
87
|
"mocha-testdata": "^1.2.0",
|
|
88
88
|
"nyc": "15.1.0",
|
|
89
|
-
"puppeteer-core": "^19.
|
|
89
|
+
"puppeteer-core": "^19.6.3",
|
|
90
90
|
"start-server-and-test": "^1.15.2",
|
|
91
|
-
"webdriverio": "^7.
|
|
91
|
+
"webdriverio": "^7.30.1"
|
|
92
92
|
},
|
|
93
93
|
"nyc": {
|
|
94
94
|
"include": [
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"cache": true,
|
|
111
111
|
"all": false
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "ebe1ca57bb98f09bc4554f32e87f44a0dbce2c22"
|
|
114
114
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArtifactArchiver, Serenity } from '@serenity-js/core';
|
|
1
|
+
import { AnsiDiffFormatter, ArtifactArchiver, Serenity } from '@serenity-js/core';
|
|
2
2
|
import { TestRunnerAdapter } from '@serenity-js/core/lib/adapter';
|
|
3
3
|
import { ModuleLoader, Path } from '@serenity-js/core/lib/io';
|
|
4
4
|
import type { Capabilities } from '@wdio/types';
|
|
@@ -69,6 +69,7 @@ export class WebdriverIOFrameworkAdapter {
|
|
|
69
69
|
outputStream: outputStreamBuffer,
|
|
70
70
|
cueTimeout: config.serenity.cueTimeout,
|
|
71
71
|
actors: config.serenity.actors,
|
|
72
|
+
diffFormatter: config.serenity.diffFormatter ?? new AnsiDiffFormatter(),
|
|
72
73
|
crew: [
|
|
73
74
|
...config.serenity.crew,
|
|
74
75
|
this.notifier,
|