@zohodesk/testinglibrary 0.5.3-n18-experimental → 0.5.5-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.
Files changed (28) hide show
  1. package/README.md +8 -0
  2. package/build/core/playwright/builtInFixtures/page.js +2 -1
  3. package/build/core/playwright/clear-caches.js +2 -5
  4. package/build/core/playwright/configuration/ConfigurationHelper.js +5 -7
  5. package/build/core/playwright/constants/reporterConstants.js +2 -6
  6. package/build/core/playwright/custom-commands.js +1 -1
  7. package/build/core/playwright/env-initializer.js +9 -10
  8. package/build/core/playwright/helpers/auth/getUsers.js +14 -14
  9. package/build/core/playwright/helpers/auth/index.js +1 -8
  10. package/build/core/playwright/helpers/auth/loginSteps.js +6 -4
  11. package/build/core/playwright/helpers/configFileNameProvider.js +8 -15
  12. package/build/core/playwright/readConfigFile.js +9 -8
  13. package/build/core/playwright/setup/ProjectConfiguration.js +26 -9
  14. package/build/core/playwright/setup/config-creator.js +5 -8
  15. package/build/core/playwright/setup/config-utils.js +4 -7
  16. package/build/core/playwright/setup/qc-custom-reporter.js +1 -4
  17. package/build/core/playwright/test-runner.js +6 -4
  18. package/build/index.js +0 -6
  19. package/build/test/core/playwright/helpers/__tests__/configFileNameProvider.test.js +13 -54
  20. package/build/test/core/playwright/helpers/__tests__/getUsers_ListOfActors.test.js +26 -29
  21. package/build/utils/commonUtils.js +1 -4
  22. package/npm-shrinkwrap.json +211 -125
  23. package/package.json +2 -2
  24. package/playwright.config.js +7 -10
  25. package/build/core/playwright/constants/configConstants.js +0 -14
  26. package/build/core/playwright/helpers/configPathResolver.js +0 -38
  27. package/build/test/core/playwright/helpers/__tests__/configPathResolver.test.js +0 -55
  28. package/unit_reports/unit-report.html +0 -260
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.3-n18-experimental",
3
+ "version": "0.5.5-n18-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.5.3-n18-experimental",
9
+ "version": "0.5.5-n18-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
@@ -18,6 +18,7 @@
18
18
  "@testing-library/jest-dom": "5.11.9",
19
19
  "@testing-library/react": "11.2.7",
20
20
  "@testing-library/react-hooks": "7.0.2",
21
+ "@zohodesk/testinglibrary": "file:zohodesk-testinglibrary-0.5.4-n18-experimental.tgz",
21
22
  "babel-jest": "29.6.2",
22
23
  "babel-plugin-transform-dynamic-import": "2.1.0",
23
24
  "fast-glob": "3.3.1",
@@ -26,7 +27,6 @@
26
27
  "msw": "1.2.3",
27
28
  "playwright": "1.53.2",
28
29
  "playwright-bdd": "8.3.1",
29
- "properties-reader": "2.3.0",
30
30
  "supports-color": "8.1.1"
31
31
  },
32
32
  "bin": {
@@ -2037,6 +2037,67 @@
2037
2037
  "regexp-match-indices": "1.0.2"
2038
2038
  }
2039
2039
  },
2040
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin": {
2041
+ "version": "30.0.4",
2042
+ "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-30.0.4.tgz",
2043
+ "integrity": "sha512-pb7lmAJqweZRADTTsgnC3F5zbTh3nwOB1M83Q9ZPbUKMb3P76PzK6cTcPTJBHWy3l7isbigIv+BkDjaca6C8/g==",
2044
+ "license": "MIT",
2045
+ "dependencies": {
2046
+ "@cucumber/messages": ">=19.1.4 <=26"
2047
+ }
2048
+ },
2049
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin/node_modules/@cucumber/messages": {
2050
+ "version": "26.0.1",
2051
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-26.0.1.tgz",
2052
+ "integrity": "sha512-DIxSg+ZGariumO+Lq6bn4kOUIUET83A4umrnWmidjGFl8XxkBieUZtsmNbLYgH/gnsmP07EfxxdTr0hOchV1Sg==",
2053
+ "license": "MIT",
2054
+ "dependencies": {
2055
+ "@types/uuid": "10.0.0",
2056
+ "class-transformer": "0.5.1",
2057
+ "reflect-metadata": "0.2.2",
2058
+ "uuid": "10.0.0"
2059
+ }
2060
+ },
2061
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin/node_modules/uuid": {
2062
+ "version": "10.0.0",
2063
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
2064
+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
2065
+ "funding": [
2066
+ "https://github.com/sponsors/broofa",
2067
+ "https://github.com/sponsors/ctavan"
2068
+ ],
2069
+ "license": "MIT",
2070
+ "bin": {
2071
+ "uuid": "dist/bin/uuid"
2072
+ }
2073
+ },
2074
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/html-formatter": {
2075
+ "version": "21.10.1",
2076
+ "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.10.1.tgz",
2077
+ "integrity": "sha512-isaaNMNnBYThsvaHy7i+9kkk9V3+rhgdkt0pd6TCY6zY1CSRZQ7tG6ST9pYyRaECyfbCeF7UGH0KpNEnh6UNvQ==",
2078
+ "license": "MIT",
2079
+ "peerDependencies": {
2080
+ "@cucumber/messages": ">=18"
2081
+ }
2082
+ },
2083
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/messages": {
2084
+ "version": "27.2.0",
2085
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2086
+ "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
2087
+ "license": "MIT",
2088
+ "dependencies": {
2089
+ "@types/uuid": "10.0.0",
2090
+ "class-transformer": "0.5.1",
2091
+ "reflect-metadata": "0.2.2",
2092
+ "uuid": "11.0.5"
2093
+ }
2094
+ },
2095
+ "node_modules/@cucumber/cucumber/node_modules/@cucumber/tag-expressions": {
2096
+ "version": "6.1.2",
2097
+ "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.1.2.tgz",
2098
+ "integrity": "sha512-xa3pER+ntZhGCxRXSguDTKEHTZpUUsp+RzTRNnit+vi5cqnk6abLdSLg5i3HZXU3c74nQ8afQC6IT507EN74oQ==",
2099
+ "license": "MIT"
2100
+ },
2040
2101
  "node_modules/@cucumber/cucumber/node_modules/brace-expansion": {
2041
2102
  "version": "2.0.2",
2042
2103
  "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
@@ -2075,6 +2136,15 @@
2075
2136
  "url": "https://github.com/sponsors/isaacs"
2076
2137
  }
2077
2138
  },
2139
+ "node_modules/@cucumber/cucumber/node_modules/luxon": {
2140
+ "version": "3.6.1",
2141
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz",
2142
+ "integrity": "sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==",
2143
+ "license": "MIT",
2144
+ "engines": {
2145
+ "node": ">=12"
2146
+ }
2147
+ },
2078
2148
  "node_modules/@cucumber/cucumber/node_modules/minimatch": {
2079
2149
  "version": "9.0.5",
2080
2150
  "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
@@ -2102,13 +2172,27 @@
2102
2172
  "node": ">=10"
2103
2173
  }
2104
2174
  },
2175
+ "node_modules/@cucumber/cucumber/node_modules/uuid": {
2176
+ "version": "11.0.5",
2177
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
2178
+ "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
2179
+ "funding": [
2180
+ "https://github.com/sponsors/broofa",
2181
+ "https://github.com/sponsors/ctavan"
2182
+ ],
2183
+ "license": "MIT",
2184
+ "bin": {
2185
+ "uuid": "dist/esm/bin/uuid"
2186
+ }
2187
+ },
2105
2188
  "node_modules/@cucumber/gherkin": {
2106
- "version": "30.0.4",
2107
- "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-30.0.4.tgz",
2108
- "integrity": "sha512-pb7lmAJqweZRADTTsgnC3F5zbTh3nwOB1M83Q9ZPbUKMb3P76PzK6cTcPTJBHWy3l7isbigIv+BkDjaca6C8/g==",
2189
+ "version": "37.0.0",
2190
+ "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-37.0.0.tgz",
2191
+ "integrity": "sha512-vKJVJ6h4HCktG870wgYUUskNpFxbFI0WmAkVLPTz1LlLwJX7/KOBqFcr2/L3u0pPoHjbLRW+IpbiXLT2T13/wg==",
2109
2192
  "license": "MIT",
2193
+ "peer": true,
2110
2194
  "dependencies": {
2111
- "@cucumber/messages": ">=19.1.4 <=26"
2195
+ "@cucumber/messages": ">=31.0.0 <32"
2112
2196
  }
2113
2197
  },
2114
2198
  "node_modules/@cucumber/gherkin-streams": {
@@ -2175,16 +2259,7 @@
2175
2259
  "uuid": "10.0.0"
2176
2260
  }
2177
2261
  },
2178
- "node_modules/@cucumber/gherkin-utils/node_modules/commander": {
2179
- "version": "13.1.0",
2180
- "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
2181
- "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
2182
- "license": "MIT",
2183
- "engines": {
2184
- "node": ">=18"
2185
- }
2186
- },
2187
- "node_modules/@cucumber/gherkin-utils/node_modules/uuid": {
2262
+ "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/gherkin/node_modules/uuid": {
2188
2263
  "version": "10.0.0",
2189
2264
  "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
2190
2265
  "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
@@ -2197,35 +2272,44 @@
2197
2272
  "uuid": "dist/bin/uuid"
2198
2273
  }
2199
2274
  },
2200
- "node_modules/@cucumber/gherkin/node_modules/@cucumber/messages": {
2201
- "version": "26.0.1",
2202
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-26.0.1.tgz",
2203
- "integrity": "sha512-DIxSg+ZGariumO+Lq6bn4kOUIUET83A4umrnWmidjGFl8XxkBieUZtsmNbLYgH/gnsmP07EfxxdTr0hOchV1Sg==",
2275
+ "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/messages": {
2276
+ "version": "27.2.0",
2277
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2278
+ "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
2204
2279
  "license": "MIT",
2205
2280
  "dependencies": {
2206
2281
  "@types/uuid": "10.0.0",
2207
2282
  "class-transformer": "0.5.1",
2208
2283
  "reflect-metadata": "0.2.2",
2209
- "uuid": "10.0.0"
2284
+ "uuid": "11.0.5"
2210
2285
  }
2211
2286
  },
2212
- "node_modules/@cucumber/gherkin/node_modules/uuid": {
2213
- "version": "10.0.0",
2214
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
2215
- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
2287
+ "node_modules/@cucumber/gherkin-utils/node_modules/commander": {
2288
+ "version": "13.1.0",
2289
+ "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
2290
+ "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
2291
+ "license": "MIT",
2292
+ "engines": {
2293
+ "node": ">=18"
2294
+ }
2295
+ },
2296
+ "node_modules/@cucumber/gherkin-utils/node_modules/uuid": {
2297
+ "version": "11.0.5",
2298
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
2299
+ "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
2216
2300
  "funding": [
2217
2301
  "https://github.com/sponsors/broofa",
2218
2302
  "https://github.com/sponsors/ctavan"
2219
2303
  ],
2220
2304
  "license": "MIT",
2221
2305
  "bin": {
2222
- "uuid": "dist/bin/uuid"
2306
+ "uuid": "dist/esm/bin/uuid"
2223
2307
  }
2224
2308
  },
2225
2309
  "node_modules/@cucumber/html-formatter": {
2226
- "version": "21.10.1",
2227
- "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.10.1.tgz",
2228
- "integrity": "sha512-isaaNMNnBYThsvaHy7i+9kkk9V3+rhgdkt0pd6TCY6zY1CSRZQ7tG6ST9pYyRaECyfbCeF7UGH0KpNEnh6UNvQ==",
2310
+ "version": "21.14.0",
2311
+ "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.14.0.tgz",
2312
+ "integrity": "sha512-vQqbmQZc0QiN4c+cMCffCItpODJlOlYtPG7pH6We096dBOa7u0ttDMjT6KrMAnQlcln54rHL46r408IFpuznAw==",
2229
2313
  "license": "MIT",
2230
2314
  "peerDependencies": {
2231
2315
  "@cucumber/messages": ">=18"
@@ -2256,15 +2340,14 @@
2256
2340
  }
2257
2341
  },
2258
2342
  "node_modules/@cucumber/messages": {
2259
- "version": "27.2.0",
2260
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2261
- "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
2343
+ "version": "31.0.0",
2344
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-31.0.0.tgz",
2345
+ "integrity": "sha512-Dqhatp4AjMsH9SREfWz3Q8nlGuwJMTW7YAW5L3OzRId86ZUEu/a8vIL1RO2c0agQefuBS2SVH9fEZ66ovrMYRA==",
2262
2346
  "license": "MIT",
2347
+ "peer": true,
2263
2348
  "dependencies": {
2264
- "@types/uuid": "10.0.0",
2265
2349
  "class-transformer": "0.5.1",
2266
- "reflect-metadata": "0.2.2",
2267
- "uuid": "11.0.5"
2350
+ "reflect-metadata": "0.2.2"
2268
2351
  }
2269
2352
  },
2270
2353
  "node_modules/@cucumber/query": {
@@ -2281,9 +2364,9 @@
2281
2364
  }
2282
2365
  },
2283
2366
  "node_modules/@cucumber/tag-expressions": {
2284
- "version": "6.1.2",
2285
- "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.1.2.tgz",
2286
- "integrity": "sha512-xa3pER+ntZhGCxRXSguDTKEHTZpUUsp+RzTRNnit+vi5cqnk6abLdSLg5i3HZXU3c74nQ8afQC6IT507EN74oQ==",
2367
+ "version": "6.2.0",
2368
+ "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.2.0.tgz",
2369
+ "integrity": "sha512-KIF0eLcafHbWOuSDWFw0lMmgJOLdDRWjEL1kfXEWrqHmx2119HxVAr35WuEd9z542d3Yyg+XNqSr+81rIKqEdg==",
2287
2370
  "license": "MIT"
2288
2371
  },
2289
2372
  "node_modules/@eslint-community/eslint-utils": {
@@ -4153,6 +4236,40 @@
4153
4236
  "node": ">=10.0.0"
4154
4237
  }
4155
4238
  },
4239
+ "node_modules/@zohodesk/testinglibrary": {
4240
+ "version": "0.5.4-n18-experimental",
4241
+ "resolved": "file:zohodesk-testinglibrary-0.5.4-n18-experimental.tgz",
4242
+ "integrity": "sha512-Y1fW2IiqobcE15ZfYSOca8CZ+/9zxoWkqW+XlRQtwUEfETjMSkccn4fuvycAnje7yDib14Bh804gP1ufncWv5w==",
4243
+ "hasInstallScript": true,
4244
+ "license": "ISC",
4245
+ "dependencies": {
4246
+ "@babel/code-frame": "7.27.1",
4247
+ "@babel/preset-react": "7.22.5",
4248
+ "@cucumber/cucumber": "11.3.0",
4249
+ "@playwright/test": "1.53.2",
4250
+ "@reportportal/agent-js-playwright": "5.1.11",
4251
+ "@testing-library/jest-dom": "5.11.9",
4252
+ "@testing-library/react": "11.2.7",
4253
+ "@testing-library/react-hooks": "7.0.2",
4254
+ "babel-jest": "29.6.2",
4255
+ "babel-plugin-transform-dynamic-import": "2.1.0",
4256
+ "fast-glob": "3.3.1",
4257
+ "jest": "29.6.2",
4258
+ "jest-environment-jsdom": "29.6.2",
4259
+ "msw": "1.2.3",
4260
+ "playwright": "1.53.2",
4261
+ "playwright-bdd": "8.3.1",
4262
+ "supports-color": "8.1.1"
4263
+ },
4264
+ "bin": {
4265
+ "ZDTestingFramework": "bin/cli.js"
4266
+ },
4267
+ "peerDependencies": {
4268
+ "eslint": "*",
4269
+ "react": "*",
4270
+ "react-dom": "*"
4271
+ }
4272
+ },
4156
4273
  "node_modules/@zxing/text-encoding": {
4157
4274
  "version": "0.9.0",
4158
4275
  "resolved": "https://registry.npmjs.org/@zxing/text-encoding/-/text-encoding-0.9.0.tgz",
@@ -4686,9 +4803,9 @@
4686
4803
  "license": "MIT"
4687
4804
  },
4688
4805
  "node_modules/baseline-browser-mapping": {
4689
- "version": "2.8.32",
4690
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.32.tgz",
4691
- "integrity": "sha512-OPz5aBThlyLFgxyhdwf/s2+8ab3OvT7AdTNvKHBwpXomIYeXqpUUuT8LrdtxZSsWJ4R4CU1un4XGh5Ez3nlTpw==",
4806
+ "version": "2.8.30",
4807
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.30.tgz",
4808
+ "integrity": "sha512-aTUKW4ptQhS64+v2d6IkPzymEzzhw+G0bA1g3uBRV3+ntkH+svttKseW5IOR4Ed6NUVKqnY7qT3dKvzQ7io4AA==",
4692
4809
  "license": "Apache-2.0",
4693
4810
  "bin": {
4694
4811
  "baseline-browser-mapping": "dist/cli.js"
@@ -4877,9 +4994,9 @@
4877
4994
  }
4878
4995
  },
4879
4996
  "node_modules/caniuse-lite": {
4880
- "version": "1.0.30001757",
4881
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz",
4882
- "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==",
4997
+ "version": "1.0.30001756",
4998
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001756.tgz",
4999
+ "integrity": "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A==",
4883
5000
  "funding": [
4884
5001
  {
4885
5002
  "type": "opencollective",
@@ -5570,9 +5687,9 @@
5570
5687
  "license": "MIT"
5571
5688
  },
5572
5689
  "node_modules/electron-to-chromium": {
5573
- "version": "1.5.262",
5574
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.262.tgz",
5575
- "integrity": "sha512-NlAsMteRHek05jRUxUR0a5jpjYq9ykk6+kO0yRaMi5moe7u0fVIOeQ3Y30A8dIiWFBNUoQGi1ljb1i5VtS9WQQ==",
5690
+ "version": "1.5.259",
5691
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.259.tgz",
5692
+ "integrity": "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==",
5576
5693
  "license": "ISC"
5577
5694
  },
5578
5695
  "node_modules/emittery": {
@@ -5784,27 +5901,6 @@
5784
5901
  "url": "https://github.com/sponsors/sindresorhus"
5785
5902
  }
5786
5903
  },
5787
- "node_modules/escodegen": {
5788
- "version": "2.1.0",
5789
- "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
5790
- "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
5791
- "license": "BSD-2-Clause",
5792
- "dependencies": {
5793
- "esprima": "^4.0.1",
5794
- "estraverse": "^5.2.0",
5795
- "esutils": "^2.0.2"
5796
- },
5797
- "bin": {
5798
- "escodegen": "bin/escodegen.js",
5799
- "esgenerate": "bin/esgenerate.js"
5800
- },
5801
- "engines": {
5802
- "node": ">=6.0"
5803
- },
5804
- "optionalDependencies": {
5805
- "source-map": "~0.6.1"
5806
- }
5807
- },
5808
5904
  "node_modules/eslint": {
5809
5905
  "version": "9.39.1",
5810
5906
  "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",
@@ -9259,6 +9355,27 @@
9259
9355
  }
9260
9356
  }
9261
9357
  },
9358
+ "node_modules/jsdom/node_modules/escodegen": {
9359
+ "version": "2.1.0",
9360
+ "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
9361
+ "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
9362
+ "license": "BSD-2-Clause",
9363
+ "dependencies": {
9364
+ "esprima": "^4.0.1",
9365
+ "estraverse": "^5.2.0",
9366
+ "esutils": "^2.0.2"
9367
+ },
9368
+ "bin": {
9369
+ "escodegen": "bin/escodegen.js",
9370
+ "esgenerate": "bin/esgenerate.js"
9371
+ },
9372
+ "engines": {
9373
+ "node": ">=6.0"
9374
+ },
9375
+ "optionalDependencies": {
9376
+ "source-map": "~0.6.1"
9377
+ }
9378
+ },
9262
9379
  "node_modules/jsesc": {
9263
9380
  "version": "3.1.0",
9264
9381
  "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
@@ -9455,9 +9572,9 @@
9455
9572
  }
9456
9573
  },
9457
9574
  "node_modules/luxon": {
9458
- "version": "3.6.1",
9459
- "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz",
9460
- "integrity": "sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==",
9575
+ "version": "3.7.1",
9576
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.1.tgz",
9577
+ "integrity": "sha512-RkRWjA926cTvz5rAb1BqyWkKbbjzCGchDUIKMCUvNi17j6f6j8uHGDV82Aqcqtzd+icoYpELmG3ksgGiFNNcNg==",
9461
9578
  "license": "MIT",
9462
9579
  "engines": {
9463
9580
  "node": ">=12"
@@ -10435,21 +10552,18 @@
10435
10552
  "@cucumber/messages": ">=19.1.4 <28"
10436
10553
  }
10437
10554
  },
10438
- "node_modules/playwright-bdd/node_modules/@cucumber/html-formatter": {
10439
- "version": "21.15.1",
10440
- "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.15.1.tgz",
10441
- "integrity": "sha512-tjxEpP161sQ7xc3VREc94v1ymwIckR3ySViy7lTvfi1jUpyqy2Hd/p4oE3YT1kQ9fFDvUflPwu5ugK5mA7BQLA==",
10555
+ "node_modules/playwright-bdd/node_modules/@cucumber/messages": {
10556
+ "version": "27.2.0",
10557
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
10558
+ "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
10442
10559
  "license": "MIT",
10443
- "peerDependencies": {
10444
- "@cucumber/messages": ">=18"
10560
+ "dependencies": {
10561
+ "@types/uuid": "10.0.0",
10562
+ "class-transformer": "0.5.1",
10563
+ "reflect-metadata": "0.2.2",
10564
+ "uuid": "11.0.5"
10445
10565
  }
10446
10566
  },
10447
- "node_modules/playwright-bdd/node_modules/@cucumber/tag-expressions": {
10448
- "version": "6.2.0",
10449
- "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.2.0.tgz",
10450
- "integrity": "sha512-KIF0eLcafHbWOuSDWFw0lMmgJOLdDRWjEL1kfXEWrqHmx2119HxVAr35WuEd9z542d3Yyg+XNqSr+81rIKqEdg==",
10451
- "license": "MIT"
10452
- },
10453
10567
  "node_modules/playwright-bdd/node_modules/commander": {
10454
10568
  "version": "13.1.0",
10455
10569
  "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
@@ -10500,6 +10614,19 @@
10500
10614
  "url": "https://opencollective.com/express"
10501
10615
  }
10502
10616
  },
10617
+ "node_modules/playwright-bdd/node_modules/uuid": {
10618
+ "version": "11.0.5",
10619
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
10620
+ "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
10621
+ "funding": [
10622
+ "https://github.com/sponsors/broofa",
10623
+ "https://github.com/sponsors/ctavan"
10624
+ ],
10625
+ "license": "MIT",
10626
+ "bin": {
10627
+ "uuid": "dist/esm/bin/uuid"
10628
+ }
10629
+ },
10503
10630
  "node_modules/playwright-core": {
10504
10631
  "version": "1.53.2",
10505
10632
  "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.53.2.tgz",
@@ -10616,34 +10743,6 @@
10616
10743
  "node": ">= 6"
10617
10744
  }
10618
10745
  },
10619
- "node_modules/properties-reader": {
10620
- "version": "2.3.0",
10621
- "resolved": "https://registry.npmjs.org/properties-reader/-/properties-reader-2.3.0.tgz",
10622
- "integrity": "sha512-z597WicA7nDZxK12kZqHr2TcvwNU1GCfA5UwfDY/HDp3hXPoPlb5rlEx9bwGTiJnc0OqbBTkU975jDToth8Gxw==",
10623
- "license": "MIT",
10624
- "dependencies": {
10625
- "mkdirp": "^1.0.4"
10626
- },
10627
- "engines": {
10628
- "node": ">=14"
10629
- },
10630
- "funding": {
10631
- "type": "github",
10632
- "url": "https://github.com/steveukx/properties?sponsor=1"
10633
- }
10634
- },
10635
- "node_modules/properties-reader/node_modules/mkdirp": {
10636
- "version": "1.0.4",
10637
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
10638
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
10639
- "license": "MIT",
10640
- "bin": {
10641
- "mkdirp": "bin/cmd.js"
10642
- },
10643
- "engines": {
10644
- "node": ">=10"
10645
- }
10646
- },
10647
10746
  "node_modules/property-expr": {
10648
10747
  "version": "2.0.6",
10649
10748
  "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
@@ -12189,19 +12288,6 @@
12189
12288
  "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
12190
12289
  "license": "MIT"
12191
12290
  },
12192
- "node_modules/uuid": {
12193
- "version": "11.0.5",
12194
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
12195
- "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
12196
- "funding": [
12197
- "https://github.com/sponsors/broofa",
12198
- "https://github.com/sponsors/ctavan"
12199
- ],
12200
- "license": "MIT",
12201
- "bin": {
12202
- "uuid": "dist/esm/bin/uuid"
12203
- }
12204
- },
12205
12291
  "node_modules/v8-to-istanbul": {
12206
12292
  "version": "9.3.0",
12207
12293
  "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.3-n18-experimental",
3
+ "version": "0.5.5-n18-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -29,6 +29,7 @@
29
29
  "@testing-library/jest-dom": "5.11.9",
30
30
  "@testing-library/react": "11.2.7",
31
31
  "@testing-library/react-hooks": "7.0.2",
32
+ "@zohodesk/testinglibrary": "file:zohodesk-testinglibrary-0.5.4-n18-experimental.tgz",
32
33
  "babel-jest": "29.6.2",
33
34
  "babel-plugin-transform-dynamic-import": "2.1.0",
34
35
  "fast-glob": "3.3.1",
@@ -37,7 +38,6 @@
37
38
  "msw": "1.2.3",
38
39
  "playwright": "1.53.2",
39
40
  "playwright-bdd": "8.3.1",
40
- "properties-reader": "2.3.0",
41
41
  "supports-color": "8.1.1"
42
42
  },
43
43
  "bin": {
@@ -1,17 +1,14 @@
1
1
  // @ts-check
2
2
  const { defineConfig, devices } = require('@playwright/test');
3
3
  const path = require('path');
4
- import configConstants from './src/core/playwright/constants/configConstants';
5
- import { getRunStage } from './src/core/playwright/configuration/ConfigurationHelper';
6
-
7
- const stage = getRunStage();
4
+ const numCPUs = require('os').cpus().length;
8
5
 
9
6
  export default defineConfig({
10
- testDir: path.join(path.resolve(process.cwd()), configConstants.TEST_SLICE_FOLDER, stage),
11
- outputDir: path.join(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage , 'test-results'),
7
+ testDir: path.join(path.resolve(process.cwd()), 'uat'),
8
+ outputDir: path.join(process.cwd(), 'uat', 'test-results'),
12
9
  fullyParallel: true,
13
10
  retries: process.env.CI ? 2 : 0,
14
- reporter: [['html', { outputFolder: path.join(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright-report'), open: "always" }]],
11
+ reporter: [['html', { outputFolder: path.join(process.cwd(), 'uat', 'playwright-report'), open: "always" }]],
15
12
  timeout: 60 * 1000,
16
13
  expect: {
17
14
  timeout: 5 * 1000,
@@ -29,7 +26,7 @@ export default defineConfig({
29
26
  name: 'chromium',
30
27
  use: {
31
28
  ...devices['Desktop Chrome'],
32
- storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
29
+ storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
33
30
  },
34
31
  dependencies: ['setup'],
35
32
  },
@@ -42,7 +39,7 @@ export default defineConfig({
42
39
  },
43
40
  use: {
44
41
  ...devices['Desktop Firefox'],
45
- storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
42
+ storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
46
43
  },
47
44
  dependencies: ['setup'],
48
45
  },
@@ -55,7 +52,7 @@ export default defineConfig({
55
52
  },
56
53
  use: {
57
54
  ...devices['Desktop Safari'],
58
- storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
55
+ storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
59
56
  },
60
57
  dependencies: ['setup'],
61
58
  },
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- class configConstants {
4
- static DEFAULT_CONFIG_DIR = 'default';
5
- static BETA_DIR = 'beta';
6
- static ACTOR_DIR = 'actors';
7
- static UAT_CONFIG_FILE = 'uat.config.js';
8
- static INDEX_FILE = 'index.js';
9
- static SETTINGS_FILE = 'settings.json';
10
- static TEST_SUMMARY_FILE = 'test-summary.json';
11
- static STAGE_CONFIG_MAP_FILE = 'test-slices/conf_path_map.properties';
12
- static TEST_SLICE_FOLDER = 'test-slices';
13
- }
14
- module.exports = configConstants;
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getConfigPath = getConfigPath;
8
- var _fs = _interopRequireDefault(require("fs"));
9
- var _path = _interopRequireDefault(require("path"));
10
- var _propertiesReader = _interopRequireDefault(require("properties-reader"));
11
- var _logger = require("../../../utils/logger");
12
- var _configConstants = _interopRequireDefault(require("../constants/configConstants"));
13
- //This function reads a properties file and returns the entire properties
14
-
15
- function readPropertiesFile(relativeFilePath) {
16
- const filePath = _path.default.resolve(process.cwd(), relativeFilePath);
17
- let properties;
18
- if (_fs.default.existsSync(filePath)) {
19
- properties = (0, _propertiesReader.default)(filePath);
20
- } else {
21
- // we have to remove this logic after adding all the projects with proper config files
22
- _logger.Logger.log(_logger.Logger.INFO_TYPE, `Properties file ${filePath} not found. Using default configurations.`);
23
- properties = (0, _propertiesReader.default)();
24
- properties.set('uat', 'uat/conf');
25
- }
26
- return properties;
27
- }
28
-
29
- // This function return the value for the passed arguments key
30
-
31
- function getConfigPath(stage) {
32
- const props = readPropertiesFile(_configConstants.default.STAGE_CONFIG_MAP_FILE);
33
- const configPath = props.get(stage);
34
- if (!configPath) {
35
- _logger.Logger.log(_logger.Logger.FAILURE_TYPE, `No config mapping found for stage: "${stage}"`);
36
- }
37
- return configPath;
38
- }