@zohodesk/testinglibrary 0.4.88-n18-experimental → 0.4.89-n18-experimental
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/README.md +6 -3
- package/build/common/multi-actor/steps/additionalContext.spec.js +6 -2
- package/build/core/playwright/builtInFixtures/{actorCtx.js → actorContext.js} +1 -1
- package/build/core/playwright/builtInFixtures/index.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -19,17 +19,20 @@
|
|
|
19
19
|
|
|
20
20
|
## Version History
|
|
21
21
|
|
|
22
|
-
### v3.2.6 -
|
|
22
|
+
### v3.2.6 - 05-09-2025
|
|
23
23
|
|
|
24
24
|
#### Feature
|
|
25
25
|
|
|
26
|
-
- Multi-actor execution support – now possible to switch between multiple profile agents within scenarios using the
|
|
26
|
+
- Multi-actor execution support – now possible to switch between multiple profile agents within scenarios using the predefined step: - `access the {string} profile page`
|
|
27
|
+
|
|
28
|
+
### Bug fix
|
|
29
|
+
- Fixed the issue where localapp and hcapp UAT were not running properly.
|
|
27
30
|
|
|
28
31
|
### v3.2.5 - 28-08-2025
|
|
29
32
|
|
|
30
33
|
#### Enhancement
|
|
31
34
|
|
|
32
|
-
- Removed the searchFake dependency from the project level and adopted it inside the framework, reducing project-side maintenance.
|
|
35
|
+
- Removed the searchFake dependency from the project level and adopted it inside the framework, reducing project-side maintenance. use this predefined step: - `Given (a search entity)`
|
|
33
36
|
|
|
34
37
|
### v3.2.4 - 29-07-2025
|
|
35
38
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { createBdd } from '@zohodesk/testinglibrary';
|
|
2
2
|
const { BeforeScenario, Given } = createBdd();
|
|
3
3
|
|
|
4
|
-
BeforeScenario(async function({
|
|
4
|
+
BeforeScenario(async function({ page, context, browser, executionContext, actorContext }) {
|
|
5
5
|
// This will run before each scenario and set all the fixtures into this context
|
|
6
|
+
this.page = page;
|
|
7
|
+
this.context = context;
|
|
8
|
+
this.browser = browser;
|
|
9
|
+
this.executionContext = executionContext;
|
|
6
10
|
this.setActor = async (role) => {
|
|
7
|
-
const userPage =
|
|
11
|
+
const userPage = actorContext.actorsObj[role];
|
|
8
12
|
if (userPage) {
|
|
9
13
|
this.page = userPage.page;
|
|
10
14
|
this.context = userPage.context;
|
|
@@ -12,14 +12,14 @@ var _addTags = _interopRequireDefault(require("./addTags"));
|
|
|
12
12
|
var _i18N = _interopRequireDefault(require("./i18N"));
|
|
13
13
|
var _unauthenticatedPage = _interopRequireDefault(require("./unauthenticatedPage"));
|
|
14
14
|
var _executionContext = _interopRequireDefault(require("./executionContext"));
|
|
15
|
-
var
|
|
15
|
+
var _actorContext = _interopRequireDefault(require("./actorContext"));
|
|
16
16
|
function extractTagsFromTitle(text) {
|
|
17
17
|
return text.match(/@\w+/g) || [];
|
|
18
18
|
}
|
|
19
19
|
function getBuiltInFixtures(bddMode) {
|
|
20
20
|
let builtInFixtures = {
|
|
21
21
|
..._page.default,
|
|
22
|
-
...
|
|
22
|
+
..._actorContext.default,
|
|
23
23
|
..._context.default,
|
|
24
24
|
..._cacheLayer.default,
|
|
25
25
|
..._i18N.default,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/testinglibrary",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.89-n18-experimental",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@zohodesk/testinglibrary",
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.89-n18-experimental",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/testinglibrary",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.89-n18-experimental",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"test": "jest",
|
|
9
9
|
"clean": "rm -rf build && mkdir build",
|
|
10
10
|
"build-babel": "babel -d ./build ./src --copy-files",
|
|
11
|
-
"copy-common": "cp -r src/common build/",
|
|
12
11
|
"build": "npm run clean && npm run build-babel",
|
|
13
12
|
"prepare": "npm run build",
|
|
14
13
|
"lint": "eslint src/* --fix"
|