@serenity-js/protractor 3.23.2 → 3.24.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.24.0](https://github.com/serenity-js/serenity-js/compare/v3.23.2...v3.24.0) (2024-06-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **assertions:** dynamic descriptions for assertions and expectations ([3fdc7c8](https://github.com/serenity-js/serenity-js/commit/3fdc7c83880d58f509c8b9e9e2494167a99444f0)), closes [#2223](https://github.com/serenity-js/serenity-js/issues/2223)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.23.2](https://github.com/serenity-js/serenity-js/compare/v3.23.1...v3.23.2) (2024-05-24)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @serenity-js/protractor
|
|
@@ -72,7 +72,7 @@ class ProtractorParam {
|
|
|
72
72
|
* @param name
|
|
73
73
|
*/
|
|
74
74
|
static called(name) {
|
|
75
|
-
return core_1.Question.about((0, core_1.
|
|
75
|
+
return core_1.Question.about((0, core_1.the) `the ${name} param specified in Protractor config`, async (actor) => {
|
|
76
76
|
const paramName = await actor.answer(name);
|
|
77
77
|
const browseTheWeb = abilities_1.BrowseTheWebWithProtractor.as(actor);
|
|
78
78
|
return browseTheWeb.param(paramName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtractorParam.js","sourceRoot":"","sources":["../../../src/screenplay/questions/ProtractorParam.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"ProtractorParam.js","sourceRoot":"","sources":["../../../src/screenplay/questions/ProtractorParam.ts"],"names":[],"mappings":";;;AAEA,4CAAkD;AAElD,4CAA0D;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAa,eAAe;IAExB;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAc,IAAwB;QAC/C,OAAO,eAAQ,CAAC,KAAK,CAAc,IAAA,UAAG,EAAA,OAAQ,IAAK,uCAAuC,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACtG,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC3C,MAAM,YAAY,GAAG,sCAA0B,CAAC,EAAE,CAAC,KAAK,CAA+B,CAAC;YAExF,OAAO,YAAY,CAAC,KAAK,CAAc,SAAS,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAhBD,0CAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/protractor",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.0",
|
|
4
4
|
"description": "Test your web apps with Serenity/JS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"node": "^16.13 || ^18.12 || ^20"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@serenity-js/core": "3.
|
|
53
|
-
"@serenity-js/rest": "3.
|
|
54
|
-
"@serenity-js/web": "3.
|
|
52
|
+
"@serenity-js/core": "3.24.0",
|
|
53
|
+
"@serenity-js/rest": "3.24.0",
|
|
54
|
+
"@serenity-js/web": "3.24.0",
|
|
55
55
|
"deepmerge": "4.3.1",
|
|
56
56
|
"query-selector-shadow-dom": "1.0.1",
|
|
57
57
|
"tiny-types": "1.22.0"
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@integration/testing-tools": "3.0.0",
|
|
79
|
-
"@serenity-js/assertions": "3.
|
|
80
|
-
"@serenity-js/cucumber": "3.
|
|
81
|
-
"@serenity-js/jasmine": "3.
|
|
82
|
-
"@serenity-js/local-server": "3.
|
|
83
|
-
"@serenity-js/mocha": "3.
|
|
79
|
+
"@serenity-js/assertions": "3.24.0",
|
|
80
|
+
"@serenity-js/cucumber": "3.24.0",
|
|
81
|
+
"@serenity-js/jasmine": "3.24.0",
|
|
82
|
+
"@serenity-js/local-server": "3.24.0",
|
|
83
|
+
"@serenity-js/mocha": "3.24.0",
|
|
84
84
|
"@serenity-js/web": "3.1.1",
|
|
85
85
|
"@types/chai": "4.3.16",
|
|
86
86
|
"@types/express": "4.17.21",
|
|
@@ -88,16 +88,16 @@
|
|
|
88
88
|
"@types/mocha": "10.0.6",
|
|
89
89
|
"axios": "1.7.2",
|
|
90
90
|
"body-parser": "1.20.2",
|
|
91
|
-
"c8": "
|
|
91
|
+
"c8": "10.1.2",
|
|
92
92
|
"cross-env": "7.0.3",
|
|
93
93
|
"express": "4.19.2",
|
|
94
94
|
"html-minifier": "4.0.0",
|
|
95
95
|
"mocha": "10.4.0",
|
|
96
96
|
"mocha-multi": "1.1.7",
|
|
97
97
|
"protractor": "7.0.0",
|
|
98
|
-
"start-server-and-test": "2.0.
|
|
98
|
+
"start-server-and-test": "2.0.4",
|
|
99
99
|
"ts-node": "10.9.2",
|
|
100
100
|
"typescript": "5.2.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "174876f2ab2b96bce79ac825ba8c784beae2f63c"
|
|
103
103
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable unicorn/prevent-abbreviations */
|
|
2
2
|
import type { Answerable, QuestionAdapter } from '@serenity-js/core';
|
|
3
|
-
import {
|
|
3
|
+
import { Question, the } from '@serenity-js/core';
|
|
4
4
|
|
|
5
5
|
import { BrowseTheWebWithProtractor } from '../abilities';
|
|
6
6
|
|
|
@@ -74,7 +74,7 @@ export class ProtractorParam
|
|
|
74
74
|
* @param name
|
|
75
75
|
*/
|
|
76
76
|
static called<Return_Type>(name: Answerable<string>): QuestionAdapter<Return_Type> {
|
|
77
|
-
return Question.about<Return_Type>(
|
|
77
|
+
return Question.about<Return_Type>(the`the ${ name } param specified in Protractor config`, async actor => {
|
|
78
78
|
const paramName = await actor.answer(name);
|
|
79
79
|
const browseTheWeb = BrowseTheWebWithProtractor.as(actor) as BrowseTheWebWithProtractor;
|
|
80
80
|
|