@serenity-js/web 3.32.2 → 3.32.3
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 +11 -0
- package/lib/screenplay/models/Locator.d.ts +1 -1
- package/lib/screenplay/models/Locator.d.ts.map +1 -1
- package/lib/screenplay/models/Locator.js +5 -35
- package/lib/screenplay/models/Locator.js.map +1 -1
- package/lib/screenplay/models/Page.d.ts +1 -1
- package/lib/screenplay/models/Page.d.ts.map +1 -1
- package/lib/screenplay/models/Page.js.map +1 -1
- package/lib/screenplay/models/RootLocator.d.ts +1 -1
- package/lib/screenplay/models/RootLocator.d.ts.map +1 -1
- package/lib/screenplay/models/RootLocator.js +5 -35
- package/lib/screenplay/models/RootLocator.js.map +1 -1
- package/package.json +5 -5
- package/src/screenplay/models/Locator.ts +2 -1
- package/src/screenplay/models/Page.ts +2 -1
- package/src/screenplay/models/RootLocator.ts +2 -1
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.32.3](https://github.com/serenity-js/serenity-js/compare/v3.32.2...v3.32.3) (2025-07-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** use 'node:' prefix for core node module imports ([b1775d5](https://github.com/serenity-js/serenity-js/commit/b1775d51f8e19e9ae0b140ec67aa07dd1391234d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.32.2](https://github.com/serenity-js/serenity-js/compare/v3.32.1...v3.32.2) (2025-06-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @serenity-js/web
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Locator.d.ts","sourceRoot":"","sources":["../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AmB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAElF;;;;;;;;OAQG;IACH,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK;IAgBlD,QAAQ,CAAC,OAAO,IAAI,WAAW,CAAC,mBAAmB,CAAC;IAEpD,QAAQ,CAAC,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAExE,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,gGAAiE;CACzF"}
|
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
35
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
6
|
exports.Locator = void 0;
|
|
7
|
+
const node_util_1 = __importDefault(require("node:util"));
|
|
37
8
|
const core_1 = require("@serenity-js/core");
|
|
38
9
|
const io_1 = require("@serenity-js/core/lib/io");
|
|
39
|
-
const util = __importStar(require("util")); // eslint-disable-line unicorn/import-style
|
|
40
10
|
const RootLocator_1 = require("./RootLocator");
|
|
41
11
|
const selectors_1 = require("./selectors");
|
|
42
12
|
/**
|
|
@@ -95,7 +65,7 @@ class Locator extends RootLocator_1.RootLocator {
|
|
|
95
65
|
/**
|
|
96
66
|
* Custom [Node.js inspection method](https://nodejs.org/api/util.html#utilinspectcustom).
|
|
97
67
|
*/
|
|
98
|
-
[
|
|
68
|
+
[node_util_1.default.inspect.custom] = (0, io_1.inspectedObject)(this, ['parent', 'selector']);
|
|
99
69
|
}
|
|
100
70
|
exports.Locator = Locator;
|
|
101
71
|
//# sourceMappingURL=Locator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Locator.js","sourceRoot":"","sources":["../../../src/screenplay/models/Locator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Locator.js","sourceRoot":"","sources":["../../../src/screenplay/models/Locator.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAE7B,4CAA+C;AAC/C,iDAA2D;AAG3D,+CAA4C;AAC5C,2CAAoE;AAEpE;;;;;;;;;;;GAWG;AACH,MAAsB,OAClB,SAAQ,yBAAgC;IAGjB;IACH;IAFpB,YAC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ionAdapter } from '@serenity-js/core';
|
|
2
3
|
import type { CorrelationId } from '@serenity-js/core/lib/model';
|
|
3
|
-
import type { URL } from 'url';
|
|
4
4
|
import type { BrowsingSession } from './BrowsingSession';
|
|
5
5
|
import type { Cookie } from './Cookie';
|
|
6
6
|
import type { CookieData } from './CookieData';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/Page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/Page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAsB,QAAQ,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;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C;;OAEG;IACH,QAAQ,IAAI,MAAM;CAGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/screenplay/models/Page.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Page.js","sourceRoot":"","sources":["../../../src/screenplay/models/Page.ts"],"names":[],"mappings":";;;AAGA,4CAAyE;AAEzE,2CAA+C;AAE/C,4CAA4C;AAa5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgHG;AACH,MAAsB,IAAI;IAoHC;IACA;IACT;IACM;IArHpB;;OAEG;IACH,MAAM,CAAC,OAAO;QACV,OAAO,eAAQ,CAAC,KAAK,CAAO,cAAc,EAAE,KAAK,CAAC,EAAE;YAChD,OAAO,wBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,SAAS,CAAC,WAAgC;QAC7C,OAAO,eAAQ,CAAC,KAAK,CAAC,wBAAyB,WAAY,EAAE,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;YACzE,MAAM,KAAK,GAAO,MAAM,wBAAY,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;YAE1D,OAAO,IAAI,CAAC,gBAAgB,CACxB,aAAc,WAAY,EAAE,EAC5B,KAAK,EACL,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAC1D,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,UAAU,CAAC,WAAg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
2
|
import type { Optional } from '@serenity-js/core';
|
|
2
|
-
import * as util from 'util';
|
|
3
3
|
/**
|
|
4
4
|
* [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/) represents the context in which [`Locator`](https://serenity-js.org/api/web/class/Locator/) looks for [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
|
|
5
5
|
* This context is either a parent element, or some representation of the top-level browsing context.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLocator.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/RootLocator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RootLocator.d.ts","sourceRoot":"","sources":["../../../src/screenplay/models/RootLocator.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;;;;;;;;;GAWG;AACH,8BAAsB,WAAW,CAAC,mBAAmB,CAAE,YAAW,QAAQ;aACtD,aAAa,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;aAC1D,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;aACpC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;aAClC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;aAE7B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEtE,QAAQ,IAAI,MAAM;IAIlB,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,gGAA6B;CACrD"}
|
|
@@ -1,41 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
35
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
6
|
exports.RootLocator = void 0;
|
|
7
|
+
const node_util_1 = __importDefault(require("node:util"));
|
|
37
8
|
const io_1 = require("@serenity-js/core/lib/io");
|
|
38
|
-
const util = __importStar(require("util")); // eslint-disable-line unicorn/import-style
|
|
39
9
|
/**
|
|
40
10
|
* [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/) represents the context in which [`Locator`](https://serenity-js.org/api/web/class/Locator/) looks for [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
|
|
41
11
|
* This context is either a parent element, or some representation of the top-level browsing context.
|
|
@@ -52,7 +22,7 @@ class RootLocator {
|
|
|
52
22
|
toString() {
|
|
53
23
|
return 'root locator';
|
|
54
24
|
}
|
|
55
|
-
[
|
|
25
|
+
[node_util_1.default.inspect.custom] = (0, io_1.inspectedObject)(this, []);
|
|
56
26
|
}
|
|
57
27
|
exports.RootLocator = RootLocator;
|
|
58
28
|
//# sourceMappingURL=RootLocator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLocator.js","sourceRoot":"","sources":["../../../src/screenplay/models/RootLocator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RootLocator.js","sourceRoot":"","sources":["../../../src/screenplay/models/RootLocator.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,iDAA2D;AAE3D;;;;;;;;;;;GAWG;AACH,MAAsB,WAAW;IAQ7B,QAAQ;QACJ,OAAO,cAAc,CAAC;IAC1B,CAAC;IAED,CAAC,mBAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAA,oBAAe,EAAC,IAAI,EAAE,EAAG,CAAC,CAAA;CACrD;AAbD,kCAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serenity-js/web",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.3",
|
|
4
4
|
"description": "Serenity/JS Screenplay Pattern library offering a flexible, web driver-agnostic approach for interacting with web-based user interfaces and components, suitable for various testing contexts",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jan Molak",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"node": "^18.12 || ^20 || ^22"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@serenity-js/assertions": "3.32.
|
|
57
|
-
"@serenity-js/core": "3.32.
|
|
56
|
+
"@serenity-js/assertions": "3.32.3",
|
|
57
|
+
"@serenity-js/core": "3.32.3",
|
|
58
58
|
"tiny-types": "1.23.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@types/chai": "4.3.20",
|
|
63
63
|
"@types/mocha": "10.0.10",
|
|
64
64
|
"c8": "10.1.3",
|
|
65
|
-
"mocha": "11.7.
|
|
65
|
+
"mocha": "11.7.1",
|
|
66
66
|
"mocha-multi": "1.1.7",
|
|
67
67
|
"ts-node": "10.9.2",
|
|
68
68
|
"typescript": "5.8.3"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "3f999fb373b9c9df526391780c6295f067dd0e20"
|
|
71
71
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import util from 'node:util';
|
|
2
|
+
|
|
1
3
|
import { LogicError } from '@serenity-js/core';
|
|
2
4
|
import { inspectedObject } from '@serenity-js/core/lib/io';
|
|
3
|
-
import * as util from 'util'; // eslint-disable-line unicorn/import-style
|
|
4
5
|
|
|
5
6
|
import type { PageElement } from './PageElement';
|
|
6
7
|
import { RootLocator } from './RootLocator';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { URL } from 'node:url';
|
|
2
|
+
|
|
1
3
|
import type { Expectation, ExpectationOutcome, Optional, QuestionAdapter } from '@serenity-js/core';
|
|
2
4
|
import { ExpectationMet, LogicError, Question } from '@serenity-js/core';
|
|
3
5
|
import type { CorrelationId } from '@serenity-js/core/lib/model';
|
|
4
6
|
import { ensure, isDefined } from 'tiny-types';
|
|
5
|
-
import type { URL } from 'url';
|
|
6
7
|
|
|
7
8
|
import { BrowseTheWeb } from '../abilities';
|
|
8
9
|
import type { BrowsingSession } from './BrowsingSession';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import util from 'node:util';
|
|
2
|
+
|
|
1
3
|
import type { Optional } from '@serenity-js/core';
|
|
2
4
|
import { inspectedObject } from '@serenity-js/core/lib/io';
|
|
3
|
-
import * as util from 'util'; // eslint-disable-line unicorn/import-style
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* [`RootLocator`](https://serenity-js.org/api/web/class/RootLocator/) represents the context in which [`Locator`](https://serenity-js.org/api/web/class/Locator/) looks for [`PageElement`](https://serenity-js.org/api/web/class/PageElement/) or [`PageElement`](https://serenity-js.org/api/web/class/PageElements/).
|