@zohodesk/testinglibrary 3.2.14 → 4.0.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/README.md +18 -8
- package/build/core/jest/setup/index.js +1 -1
- package/build/core/playwright/configuration/ConfigurationHelper.js +7 -5
- package/build/core/playwright/constants/configConstants.js +17 -0
- package/build/core/playwright/constants/reporterConstants.js +11 -0
- package/build/core/playwright/custom-commands.js +1 -1
- package/build/core/playwright/env-initializer.js +10 -9
- package/build/core/playwright/helpers/auth/getUsers.js +14 -14
- package/build/core/playwright/helpers/configFileNameProvider.js +15 -8
- package/build/core/playwright/helpers/configPathResolver.js +38 -0
- package/build/core/playwright/readConfigFile.js +3 -2
- package/build/core/playwright/reporter/helpers/mergeAbortedTests.js +78 -0
- package/build/core/playwright/setup/custom-reporter.js +3 -0
- package/build/core/playwright/test-runner.js +4 -2
- package/build/test/core/playwright/helpers/__tests__/configFileNameProvider.test.js +54 -13
- package/build/test/core/playwright/helpers/__tests__/configPathResolver.test.js +55 -0
- package/build/test/core/playwright/helpers/__tests__/getUsers_ListOfActors.test.js +29 -26
- package/build/utils/fileUtils.js +1 -1
- package/build/utils/logger.js +1 -1
- package/npm-shrinkwrap.json +2706 -3546
- package/package.json +25 -25
- package/build/test/Test.js +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/testinglibrary",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,22 +22,23 @@
|
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/code-frame": "7.27.1",
|
|
25
|
-
"@babel/preset-react": "7.
|
|
26
|
-
"@cucumber/cucumber": "
|
|
27
|
-
"@playwright/test": "1.
|
|
28
|
-
"@reportportal/agent-js-playwright": "5.
|
|
29
|
-
"@testing-library/jest-dom": "
|
|
30
|
-
"@testing-library/react": "
|
|
31
|
-
"
|
|
32
|
-
"babel-jest": "29.6.2",
|
|
25
|
+
"@babel/preset-react": "7.28.5",
|
|
26
|
+
"@cucumber/cucumber": "12.2.0",
|
|
27
|
+
"@playwright/test": "1.56.1",
|
|
28
|
+
"@reportportal/agent-js-playwright": "5.2.2",
|
|
29
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
30
|
+
"@testing-library/react": "16.3.0",
|
|
31
|
+
"babel-jest": "30.2.0",
|
|
33
32
|
"babel-plugin-transform-dynamic-import": "2.1.0",
|
|
34
|
-
"fast-glob": "3.3.
|
|
35
|
-
"jest": "
|
|
36
|
-
"jest-environment-jsdom": "
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"playwright
|
|
40
|
-
"
|
|
33
|
+
"fast-glob": "3.3.3",
|
|
34
|
+
"jest": "30.2.0",
|
|
35
|
+
"jest-environment-jsdom": "30.2.0",
|
|
36
|
+
"jsonpath": "1.1.1",
|
|
37
|
+
"msw": "2.11.6",
|
|
38
|
+
"playwright": "1.56.1",
|
|
39
|
+
"playwright-bdd": "8.4.2",
|
|
40
|
+
"properties-reader": "2.3.0",
|
|
41
|
+
"supports-color": "10.2.2"
|
|
41
42
|
},
|
|
42
43
|
"bin": {
|
|
43
44
|
"ZDTestingFramework": "./bin/cli.js"
|
|
@@ -48,14 +49,13 @@
|
|
|
48
49
|
"react-dom": "*"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"@babel/cli": "7.
|
|
52
|
-
"@babel/core": "7.
|
|
53
|
-
"@babel/node": "7.
|
|
54
|
-
"@babel/plugin-transform-runtime": "7.
|
|
55
|
-
"@babel/
|
|
56
|
-
"@babel/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"jest-html-reporter": "3.10.2"
|
|
52
|
+
"@babel/cli": "7.28.3",
|
|
53
|
+
"@babel/core": "7.28.4",
|
|
54
|
+
"@babel/node": "7.28.0",
|
|
55
|
+
"@babel/plugin-transform-runtime": "7.28.3",
|
|
56
|
+
"@babel/preset-env": "7.28.3",
|
|
57
|
+
"@babel/runtime": "7.28.4",
|
|
58
|
+
"commander": "14.0.2",
|
|
59
|
+
"jest-html-reporter": "4.3.0"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/build/test/Test.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
delete require.cache[require.resolve('../core/playwright/runner/Runner')];
|
|
4
|
-
function test() {
|
|
5
|
-
const inputString = "@hc";
|
|
6
|
-
const selectedTag = ["@hc_1234"].reverse().find(tag => tag.startsWith(inputString));
|
|
7
|
-
let tagInput = null;
|
|
8
|
-
if (selectedTag) {
|
|
9
|
-
tagInput = selectedTag.split(`${inputString}_`).pop().toLowerCase();
|
|
10
|
-
}
|
|
11
|
-
console.log(tagInput);
|
|
12
|
-
}
|
|
13
|
-
test();
|