@zohodesk/testinglibrary 4.0.3 → 4.0.5
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/.gitlab-ci.yml +16 -14
- package/README.md +13 -3
- package/build/common/searchFake/steps/searchFake.spec.js +3 -3
- package/build/core/playwright/helpers/thirdPartyLib.js +13 -0
- package/npm-shrinkwrap.json +154 -1340
- package/package.json +3 -3
package/.gitlab-ci.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image:
|
|
1
|
+
image: zdesk-auto13.csez.zohocorpin.com/long-term-storage/node18-npm10:v2
|
|
2
2
|
|
|
3
3
|
workflow:
|
|
4
4
|
rules:
|
|
@@ -188,19 +188,21 @@ uat-data_generator:
|
|
|
188
188
|
paths:
|
|
189
189
|
- examples/uat/playwright-report
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
191
|
+
uat-search_indexing:
|
|
192
|
+
stage: uat
|
|
193
|
+
script:
|
|
194
|
+
- cd examples
|
|
195
|
+
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
196
|
+
- echo "Removing jsonpath from examples/node_modules to avoid conflicts"
|
|
197
|
+
- rm -rf node_modules/jsonpath || true
|
|
198
|
+
- output=$(npm run uat-search_indexing)
|
|
199
|
+
- echo "$output"
|
|
200
|
+
- node ../ValidateUATReport.js examples
|
|
201
|
+
|
|
202
|
+
artifacts:
|
|
203
|
+
when: always
|
|
204
|
+
paths:
|
|
205
|
+
- examples/uat/playwright-report
|
|
204
206
|
|
|
205
207
|
|
|
206
208
|
|
package/README.md
CHANGED
|
@@ -16,9 +16,20 @@
|
|
|
16
16
|
### Generate Report
|
|
17
17
|
|
|
18
18
|
- npm run report
|
|
19
|
-
|
|
20
19
|
|
|
21
|
-
### v4.0.
|
|
20
|
+
### v4.0.5 - 08-01-2026
|
|
21
|
+
|
|
22
|
+
#### Bug fix
|
|
23
|
+
- @cucumber/cucumber depedency removed from testing-framework package.json
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### v4.0.4/v3.2.20 - 19-12-2025
|
|
27
|
+
|
|
28
|
+
#### Enhancement
|
|
29
|
+
- New common step provided for search index with the data generated entity
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### v4.0.3/v3.2.19 - 17-12-2025
|
|
22
33
|
|
|
23
34
|
#### Enhancement
|
|
24
35
|
- Cookie storage prefix support is provided in this version.
|
|
@@ -43,7 +54,6 @@
|
|
|
43
54
|
- @playwright/test - 1.56.1,
|
|
44
55
|
- @cucumber/cucumber - 12.2.0
|
|
45
56
|
|
|
46
|
-
|
|
47
57
|
### v3.2.15 - 14-11-2025
|
|
48
58
|
|
|
49
59
|
#### Enhancement
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {createBdd
|
|
1
|
+
import {createBdd} from '@zohodesk/testinglibrary';
|
|
2
|
+
import { jsonpath } from '@zohodesk/testinglibrary/thirdPartyHelper';
|
|
2
3
|
import { executeRpcRequest , entityIdReConstructor } from '../helpers/rpcRequestHelper';
|
|
3
|
-
// import jp from 'jsonpath';
|
|
4
4
|
|
|
5
5
|
const { Given } = createBdd();
|
|
6
6
|
|
|
@@ -54,7 +54,7 @@ Given('a search entity using {string}', async ({page,cacheLayer}, reference,data
|
|
|
54
54
|
entityIdValue = searchObj;
|
|
55
55
|
} else {
|
|
56
56
|
const jsonPath = searchEntity?.startsWith?.('$') ? searchEntity : `$.${searchEntity}`;
|
|
57
|
-
const result =
|
|
57
|
+
const result = jsonpath.query(searchObj, jsonPath);
|
|
58
58
|
|
|
59
59
|
if (!result || result.length === 0) {
|
|
60
60
|
throw new Error(`JSONPath query '${jsonPath}' returned no results from cache object for reference: ${reference}`);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "jsonpath", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _jsonpath.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _jsonpath = _interopRequireDefault(require("jsonpath"));
|