@serenity-js/serenity-bdd 3.32.1 → 3.32.2
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 +12 -0
- package/cache/{serenity-cli-4.2.30.jar → serenity-cli-4.2.34.jar} +0 -0
- package/lib/cli/defaults.js +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.d.ts.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.js +3 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.js +3 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.js +3 -2
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.js +2 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.js.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts.map +1 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.js +2 -1
- package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.js.map +1 -1
- package/package.json +5 -5
- package/src/cli/defaults.ts +1 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.ts +3 -2
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.ts +3 -2
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.ts +3 -2
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.ts +2 -1
- package/src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.32.2](https://github.com/serenity-js/serenity-js/compare/v3.32.1...v3.32.2) (2025-06-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **serenity-bdd:** correctly escape HTML entities in scenario parameter descriptions ([708942e](https://github.com/serenity-js/serenity-js/commit/708942e98d7c165bb3c2f74e829015f7a2d26d3c)), closes [#2879](https://github.com/serenity-js/serenity-js/issues/2879)
|
|
12
|
+
* **serenity-bdd:** upgraded Serenity BDD CLI jar to 4.2.34 ([fadf10a](https://github.com/serenity-js/serenity-js/commit/fadf10a9174b6466da2adbd60d658bc67eb7bbaf))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.32.1](https://github.com/serenity-js/serenity-js/compare/v3.32.0...v3.32.1) (2025-06-20)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @serenity-js/serenity-bdd
|
|
Binary file
|
package/lib/cli/defaults.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.defaults = void 0;
|
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
19
|
exports.defaults = {
|
|
20
|
-
artifact: 'net.serenity-bdd:serenity-cli:jar:4.2.
|
|
20
|
+
artifact: 'net.serenity-bdd:serenity-cli:jar:4.2.34',
|
|
21
21
|
repository: 'https://repo1.maven.org/maven2/',
|
|
22
22
|
cacheDir: 'node_modules/@serenity-js/serenity-bdd/cache',
|
|
23
23
|
sourceDir: 'target/site/serenity',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarioParametersOf.d.ts","sourceRoot":"","sources":["../../../../../../../src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"scenarioParametersOf.d.ts","sourceRoot":"","sources":["../../../../../../../src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAIvF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,0BAA0B,CA0CnK"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.scenarioParametersOf = scenarioParametersOf;
|
|
4
|
+
const mappers_1 = require("../../mappers");
|
|
4
5
|
function scenarioParametersOf(scenario, parameters) {
|
|
5
6
|
function descriptorFor(dataTable) {
|
|
6
7
|
const parameterSetDescription = parameters.description && parameters.description.value;
|
|
@@ -10,8 +11,8 @@ function scenarioParametersOf(scenario, parameters) {
|
|
|
10
11
|
return existingDescriptor;
|
|
11
12
|
}
|
|
12
13
|
const newDescriptor = {
|
|
13
|
-
name: parameters.name.value,
|
|
14
|
-
description: parameters.description && parameters.description.value,
|
|
14
|
+
name: (0, mappers_1.escapeHtml)(parameters.name.value),
|
|
15
|
+
description: (0, mappers_1.escapeHtml)(parameters.description && parameters.description.value),
|
|
15
16
|
startRow: dataTable.dataSetDescriptors.reduce((acc, current) => acc + current.rowCount, 0),
|
|
16
17
|
rowCount: 0,
|
|
17
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scenarioParametersOf.js","sourceRoot":"","sources":["../../../../../../../src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"scenarioParametersOf.js","sourceRoot":"","sources":["../../../../../../../src/stage/crew/serenity-bdd-reporter/processors/scene-sequence/transformations/scenarioParametersOf.ts"],"names":[],"mappings":";;AAMA,oDA0CC;AA7CD,2CAA2C;AAG3C,SAAgB,oBAAoB,CAAC,QAAyB,EAAE,UAA8B;IAE1F,SAAS,aAAa,CAAC,SAA0B;QAC7C,MAAM,uBAAuB,GAAG,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC;QAEvF,MAAM,kBAAkB,GAAqC,SAAS,CAAC,kBAAkB;aACpF,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,KAAK,IAAI,UAAU,CAAC,WAAW,KAAK,uBAAuB,CAAC,CAAC;QAEzH,IAAI,kBAAkB,EAAE,CAAC;YACrB,OAAO,kBAAkB,CAAC;QAC9B,CAAC;QAED,MAAM,aAAa,GAAG;YAClB,IAAI,EAAY,IAAA,oBAAU,EAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;YACjD,WAAW,EAAK,IAAA,oBAAU,EAAC,UAAU,CAAC,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC;YAClF,QAAQ,EAAQ,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAChG,QAAQ,EAAQ,CAAC;SACpB,CAAC;QAEF,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAEjD,OAAO,aAAa,CAAC;IACzB,CAAC;IAED,OAAO,CAAC,OAAmC,EAA8B,EAAE;QAEvE,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAE/C,MAAM,SAAS,GAAoB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;QAE5D,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;QAE5B,aAAa,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;QAEpC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;SAC3C,CAAC,CAAC;QAEH,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;QAEtE,OAAO,OAAO,CAAC;IACnB,CAAC,CAAA;AACL,CAAC"}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backgroundOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"backgroundOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,SAAS,wBAAwB,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAQ1I"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.backgroundOf = backgroundOf;
|
|
4
|
+
const mappers_1 = require("../mappers");
|
|
4
5
|
/**
|
|
5
6
|
* @package
|
|
6
7
|
*/
|
|
7
8
|
function backgroundOf(name, description) {
|
|
8
9
|
return (context) => {
|
|
9
|
-
context.report.backgroundTitle = name.value;
|
|
10
|
-
context.report.backgroundDescription = description.value;
|
|
10
|
+
context.report.backgroundTitle = (0, mappers_1.escapeHtml)(name.value);
|
|
11
|
+
context.report.backgroundDescription = (0, mappers_1.escapeHtml)(description.value);
|
|
11
12
|
return context;
|
|
12
13
|
};
|
|
13
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backgroundOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"backgroundOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/backgroundOf.ts"],"names":[],"mappings":";;AAQA,oCAQC;AAdD,wCAAwC;AAGxC;;GAEG;AACH,SAAgB,YAAY,CAA2C,IAAU,EAAE,WAAwB;IACvG,OAAO,CAAC,OAAgB,EAAW,EAAE;QAEjC,OAAO,CAAC,MAAM,CAAC,eAAe,GAAG,IAAA,oBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxD,OAAO,CAAC,MAAM,CAAC,qBAAqB,GAAG,IAAA,oBAAU,EAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAErE,OAAO,OAAO,CAAC;IACnB,CAAC,CAAA;AACL,CAAC"}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessRuleOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"businessRuleOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,SAAS,wBAAwB,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAU1H"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.businessRuleOf = businessRuleOf;
|
|
4
|
+
const mappers_1 = require("../mappers");
|
|
4
5
|
/**
|
|
5
6
|
* @package
|
|
6
7
|
*/
|
|
7
8
|
function businessRuleOf(rule) {
|
|
8
9
|
return (context) => {
|
|
9
10
|
context.report.rule = {
|
|
10
|
-
name: rule.name.value,
|
|
11
|
-
description: rule.description.value,
|
|
11
|
+
name: (0, mappers_1.escapeHtml)(rule.name.value),
|
|
12
|
+
description: (0, mappers_1.escapeHtml)(rule.description.value),
|
|
12
13
|
};
|
|
13
14
|
return context;
|
|
14
15
|
};
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"businessRuleOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"businessRuleOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/businessRuleOf.ts"],"names":[],"mappings":";;AAQA,wCAUC;AAhBD,wCAAwC;AAGxC;;GAEG;AACH,SAAgB,cAAc,CAA2C,IAAkB;IACvF,OAAO,CAAC,OAAgB,EAAW,EAAE;QAEjC,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG;YAClB,IAAI,EAAE,IAAA,oBAAU,EAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YACjC,WAAW,EAAE,IAAA,oBAAU,EAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;SAClD,CAAC;QAEF,OAAO,OAAO,CAAC;IACnB,CAAC,CAAA;AACL,CAAC"}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptionOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"descriptionOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,SAAS,wBAAwB,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAO/H"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.descriptionOf = descriptionOf;
|
|
4
|
+
const mappers_1 = require("../mappers");
|
|
4
5
|
/**
|
|
5
6
|
* @package
|
|
6
7
|
*/
|
|
7
8
|
function descriptionOf(description) {
|
|
8
9
|
return (context) => {
|
|
9
|
-
context.report.description = description.value;
|
|
10
|
+
context.report.description = (0, mappers_1.escapeHtml)(description.value);
|
|
10
11
|
return context;
|
|
11
12
|
};
|
|
12
13
|
}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptionOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"descriptionOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/descriptionOf.ts"],"names":[],"mappings":";;AAQA,sCAOC;AAbD,wCAAwC;AAGxC;;GAEG;AACH,SAAgB,aAAa,CAA2C,WAAwB;IAC5F,OAAO,CAAC,OAAgB,EAAW,EAAE;QAEjC,OAAO,CAAC,MAAM,CAAC,WAAW,GAAG,IAAA,oBAAU,EAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAE3D,OAAO,OAAO,CAAC;IACnB,CAAC,CAAA;AACL,CAAC"}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureNarrativeOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"featureNarrativeOf.d.ts","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,SAAS,wBAAwB,EAAE,WAAW,EAAE,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CASpI"}
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.featureNarrativeOf = featureNarrativeOf;
|
|
4
|
+
const mappers_1 = require("../mappers");
|
|
4
5
|
/**
|
|
5
6
|
* @package
|
|
6
7
|
*/
|
|
@@ -8,7 +9,7 @@ function featureNarrativeOf(description) {
|
|
|
8
9
|
return (context) => {
|
|
9
10
|
context.report.userStory = {
|
|
10
11
|
...context.report.userStory,
|
|
11
|
-
narrative: description.value,
|
|
12
|
+
narrative: (0, mappers_1.escapeHtml)(description.value),
|
|
12
13
|
};
|
|
13
14
|
return context;
|
|
14
15
|
};
|
package/lib/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureNarrativeOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"featureNarrativeOf.js","sourceRoot":"","sources":["../../../../../../src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts"],"names":[],"mappings":";;AAQA,gDASC;AAfD,wCAAwC;AAGxC;;GAEG;AACH,SAAgB,kBAAkB,CAA2C,WAAwB;IACjG,OAAO,CAAC,OAAgB,EAAW,EAAE;QACjC,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG;YACvB,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS;YAC3B,SAAS,EAAE,IAAA,oBAAU,EAAC,WAAW,CAAC,KAAK,CAAC;SAC3C,CAAA;QAED,OAAO,OAAO,CAAC;IACnB,CAAC,CAAA;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/serenity-bdd",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.2",
|
|
4
4
|
"description": "Serenity/JS reporting module that produces detailed Serenity BDD test reports and living documentation, enhancing transparency and traceability of test results",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"node": "^18.12 || ^20 || ^22"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@serenity-js/assertions": "3.32.
|
|
58
|
-
"@serenity-js/core": "3.32.
|
|
59
|
-
"@serenity-js/rest": "3.32.
|
|
57
|
+
"@serenity-js/assertions": "3.32.2",
|
|
58
|
+
"@serenity-js/core": "3.32.2",
|
|
59
|
+
"@serenity-js/rest": "3.32.2",
|
|
60
60
|
"ansi-regex": "5.0.1",
|
|
61
61
|
"axios": "1.10.0",
|
|
62
62
|
"chalk": "4.1.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "10.9.2",
|
|
80
80
|
"typescript": "5.8.3"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "bbc73b54836964b5b0981484e761c209a3dd0682"
|
|
83
83
|
}
|
package/src/cli/defaults.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export const defaults = {
|
|
17
|
-
artifact: 'net.serenity-bdd:serenity-cli:jar:4.2.
|
|
17
|
+
artifact: 'net.serenity-bdd:serenity-cli:jar:4.2.34',
|
|
18
18
|
repository: 'https://repo1.maven.org/maven2/',
|
|
19
19
|
cacheDir: 'node_modules/@serenity-js/serenity-bdd/cache',
|
|
20
20
|
sourceDir: 'target/site/serenity',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ScenarioDetails, ScenarioParameters } from '@serenity-js/core/lib/model';
|
|
2
2
|
|
|
3
3
|
import type { DataTableDataSetDescriptorSchema, DataTableSchema } from '../../../serenity-bdd-report-schema';
|
|
4
|
+
import { escapeHtml } from '../../mappers';
|
|
4
5
|
import type { SceneSequenceReportContext } from '../SceneSequenceReportContext';
|
|
5
6
|
|
|
6
7
|
export function scenarioParametersOf(scenario: ScenarioDetails, parameters: ScenarioParameters): (context: SceneSequenceReportContext) => SceneSequenceReportContext {
|
|
@@ -16,8 +17,8 @@ export function scenarioParametersOf(scenario: ScenarioDetails, parameters: Scen
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const newDescriptor = {
|
|
19
|
-
name: parameters.name.value,
|
|
20
|
-
description: parameters.description && parameters.description.value,
|
|
20
|
+
name: escapeHtml(parameters.name.value),
|
|
21
|
+
description: escapeHtml(parameters.description && parameters.description.value),
|
|
21
22
|
startRow: dataTable.dataSetDescriptors.reduce((acc, current) => acc + current.rowCount, 0),
|
|
22
23
|
rowCount: 0,
|
|
23
24
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Description, Name } from '@serenity-js/core/lib/model';
|
|
2
2
|
|
|
3
|
+
import { escapeHtml } from '../mappers';
|
|
3
4
|
import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -8,8 +9,8 @@ import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
|
8
9
|
export function backgroundOf<Context extends SerenityBDDReportContext>(name: Name, description: Description): (context: Context) => Context {
|
|
9
10
|
return (context: Context): Context => {
|
|
10
11
|
|
|
11
|
-
context.report.backgroundTitle = name.value;
|
|
12
|
-
context.report.backgroundDescription = description.value;
|
|
12
|
+
context.report.backgroundTitle = escapeHtml(name.value);
|
|
13
|
+
context.report.backgroundDescription = escapeHtml(description.value);
|
|
13
14
|
|
|
14
15
|
return context;
|
|
15
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BusinessRule } from '@serenity-js/core/lib/model';
|
|
2
2
|
|
|
3
|
+
import { escapeHtml } from '../mappers';
|
|
3
4
|
import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -9,8 +10,8 @@ export function businessRuleOf<Context extends SerenityBDDReportContext>(rule: B
|
|
|
9
10
|
return (context: Context): Context => {
|
|
10
11
|
|
|
11
12
|
context.report.rule = {
|
|
12
|
-
name: rule.name.value,
|
|
13
|
-
description: rule.description.value,
|
|
13
|
+
name: escapeHtml(rule.name.value),
|
|
14
|
+
description: escapeHtml(rule.description.value),
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
return context;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Description } from '@serenity-js/core/lib/model';
|
|
2
2
|
|
|
3
|
+
import { escapeHtml } from '../mappers';
|
|
3
4
|
import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -8,7 +9,7 @@ import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
|
8
9
|
export function descriptionOf<Context extends SerenityBDDReportContext>(description: Description): (context: Context) => Context {
|
|
9
10
|
return (context: Context): Context => {
|
|
10
11
|
|
|
11
|
-
context.report.description = description.value;
|
|
12
|
+
context.report.description = escapeHtml(description.value);
|
|
12
13
|
|
|
13
14
|
return context;
|
|
14
15
|
}
|
package/src/stage/crew/serenity-bdd-reporter/processors/transformations/featureNarrativeOf.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Description } from '@serenity-js/core/lib/model';
|
|
2
2
|
|
|
3
|
+
import { escapeHtml } from '../mappers';
|
|
3
4
|
import type { SerenityBDDReportContext } from '../SerenityBDDReportContext';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -9,7 +10,7 @@ export function featureNarrativeOf<Context extends SerenityBDDReportContext>(des
|
|
|
9
10
|
return (context: Context): Context => {
|
|
10
11
|
context.report.userStory = {
|
|
11
12
|
...context.report.userStory,
|
|
12
|
-
narrative: description.value,
|
|
13
|
+
narrative: escapeHtml(description.value),
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
return context;
|