@zohodesk/testinglibrary 0.5.10-n18-experimental → 0.5.12-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/.gitlab-ci.yml +11 -11
  2. package/README.md +0 -8
  3. package/build/core/playwright/clear-caches.js +5 -2
  4. package/build/core/playwright/configuration/ConfigurationHelper.js +7 -5
  5. package/build/core/playwright/constants/configConstants.js +14 -0
  6. package/build/core/playwright/constants/reporterConstants.js +6 -2
  7. package/build/core/playwright/custom-commands.js +1 -1
  8. package/build/core/playwright/env-initializer.js +10 -9
  9. package/build/core/playwright/helpers/auth/getUsers.js +14 -14
  10. package/build/core/playwright/helpers/auth/index.js +8 -1
  11. package/build/core/playwright/helpers/auth/loginDefaultStepsHelper.js +0 -2
  12. package/build/core/playwright/helpers/auth/loginSteps.js +5 -13
  13. package/build/core/playwright/helpers/configFileNameProvider.js +15 -8
  14. package/build/core/playwright/helpers/configPathResolver.js +38 -0
  15. package/build/core/playwright/readConfigFile.js +8 -9
  16. package/build/core/playwright/setup/ProjectConfiguration.js +9 -26
  17. package/build/core/playwright/setup/config-creator.js +8 -5
  18. package/build/core/playwright/setup/config-utils.js +7 -3
  19. package/build/core/playwright/setup/qc-custom-reporter.js +4 -1
  20. package/build/core/playwright/test-runner.js +4 -6
  21. package/build/index.js +6 -0
  22. package/build/test/core/playwright/helpers/__tests__/configFileNameProvider.test.js +54 -13
  23. package/build/test/core/playwright/helpers/__tests__/configPathResolver.test.js +55 -0
  24. package/build/test/core/playwright/helpers/__tests__/getUsers_ListOfActors.test.js +29 -26
  25. package/build/utils/commonUtils.js +4 -1
  26. package/npm-shrinkwrap.json +146 -194
  27. package/package.json +2 -1
  28. package/playwright.config.js +10 -7
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.10-n18-experimental",
3
+ "version": "0.5.12-n18-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.5.10-n18-experimental",
9
+ "version": "0.5.12-n18-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
@@ -26,6 +26,7 @@
26
26
  "msw": "1.2.3",
27
27
  "playwright": "1.53.2",
28
28
  "playwright-bdd": "8.3.1",
29
+ "properties-reader": "2.3.0",
29
30
  "supports-color": "8.1.1"
30
31
  },
31
32
  "bin": {
@@ -2036,67 +2037,6 @@
2036
2037
  "regexp-match-indices": "1.0.2"
2037
2038
  }
2038
2039
  },
2039
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin": {
2040
- "version": "30.0.4",
2041
- "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-30.0.4.tgz",
2042
- "integrity": "sha512-pb7lmAJqweZRADTTsgnC3F5zbTh3nwOB1M83Q9ZPbUKMb3P76PzK6cTcPTJBHWy3l7isbigIv+BkDjaca6C8/g==",
2043
- "license": "MIT",
2044
- "dependencies": {
2045
- "@cucumber/messages": ">=19.1.4 <=26"
2046
- }
2047
- },
2048
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin/node_modules/@cucumber/messages": {
2049
- "version": "26.0.1",
2050
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-26.0.1.tgz",
2051
- "integrity": "sha512-DIxSg+ZGariumO+Lq6bn4kOUIUET83A4umrnWmidjGFl8XxkBieUZtsmNbLYgH/gnsmP07EfxxdTr0hOchV1Sg==",
2052
- "license": "MIT",
2053
- "dependencies": {
2054
- "@types/uuid": "10.0.0",
2055
- "class-transformer": "0.5.1",
2056
- "reflect-metadata": "0.2.2",
2057
- "uuid": "10.0.0"
2058
- }
2059
- },
2060
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/gherkin/node_modules/uuid": {
2061
- "version": "10.0.0",
2062
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
2063
- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
2064
- "funding": [
2065
- "https://github.com/sponsors/broofa",
2066
- "https://github.com/sponsors/ctavan"
2067
- ],
2068
- "license": "MIT",
2069
- "bin": {
2070
- "uuid": "dist/bin/uuid"
2071
- }
2072
- },
2073
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/html-formatter": {
2074
- "version": "21.10.1",
2075
- "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.10.1.tgz",
2076
- "integrity": "sha512-isaaNMNnBYThsvaHy7i+9kkk9V3+rhgdkt0pd6TCY6zY1CSRZQ7tG6ST9pYyRaECyfbCeF7UGH0KpNEnh6UNvQ==",
2077
- "license": "MIT",
2078
- "peerDependencies": {
2079
- "@cucumber/messages": ">=18"
2080
- }
2081
- },
2082
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/messages": {
2083
- "version": "27.2.0",
2084
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2085
- "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
2086
- "license": "MIT",
2087
- "dependencies": {
2088
- "@types/uuid": "10.0.0",
2089
- "class-transformer": "0.5.1",
2090
- "reflect-metadata": "0.2.2",
2091
- "uuid": "11.0.5"
2092
- }
2093
- },
2094
- "node_modules/@cucumber/cucumber/node_modules/@cucumber/tag-expressions": {
2095
- "version": "6.1.2",
2096
- "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.1.2.tgz",
2097
- "integrity": "sha512-xa3pER+ntZhGCxRXSguDTKEHTZpUUsp+RzTRNnit+vi5cqnk6abLdSLg5i3HZXU3c74nQ8afQC6IT507EN74oQ==",
2098
- "license": "MIT"
2099
- },
2100
2040
  "node_modules/@cucumber/cucumber/node_modules/brace-expansion": {
2101
2041
  "version": "2.0.2",
2102
2042
  "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
@@ -2135,15 +2075,6 @@
2135
2075
  "url": "https://github.com/sponsors/isaacs"
2136
2076
  }
2137
2077
  },
2138
- "node_modules/@cucumber/cucumber/node_modules/luxon": {
2139
- "version": "3.6.1",
2140
- "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz",
2141
- "integrity": "sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==",
2142
- "license": "MIT",
2143
- "engines": {
2144
- "node": ">=12"
2145
- }
2146
- },
2147
2078
  "node_modules/@cucumber/cucumber/node_modules/minimatch": {
2148
2079
  "version": "9.0.5",
2149
2080
  "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
@@ -2171,27 +2102,13 @@
2171
2102
  "node": ">=10"
2172
2103
  }
2173
2104
  },
2174
- "node_modules/@cucumber/cucumber/node_modules/uuid": {
2175
- "version": "11.0.5",
2176
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
2177
- "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
2178
- "funding": [
2179
- "https://github.com/sponsors/broofa",
2180
- "https://github.com/sponsors/ctavan"
2181
- ],
2182
- "license": "MIT",
2183
- "bin": {
2184
- "uuid": "dist/esm/bin/uuid"
2185
- }
2186
- },
2187
2105
  "node_modules/@cucumber/gherkin": {
2188
- "version": "37.0.0",
2189
- "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-37.0.0.tgz",
2190
- "integrity": "sha512-vKJVJ6h4HCktG870wgYUUskNpFxbFI0WmAkVLPTz1LlLwJX7/KOBqFcr2/L3u0pPoHjbLRW+IpbiXLT2T13/wg==",
2106
+ "version": "30.0.4",
2107
+ "resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-30.0.4.tgz",
2108
+ "integrity": "sha512-pb7lmAJqweZRADTTsgnC3F5zbTh3nwOB1M83Q9ZPbUKMb3P76PzK6cTcPTJBHWy3l7isbigIv+BkDjaca6C8/g==",
2191
2109
  "license": "MIT",
2192
- "peer": true,
2193
2110
  "dependencies": {
2194
- "@cucumber/messages": ">=31.0.0 <32"
2111
+ "@cucumber/messages": ">=19.1.4 <=26"
2195
2112
  }
2196
2113
  },
2197
2114
  "node_modules/@cucumber/gherkin-streams": {
@@ -2258,7 +2175,16 @@
2258
2175
  "uuid": "10.0.0"
2259
2176
  }
2260
2177
  },
2261
- "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/gherkin/node_modules/uuid": {
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
2188
  "version": "10.0.0",
2263
2189
  "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
2264
2190
  "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
@@ -2271,44 +2197,35 @@
2271
2197
  "uuid": "dist/bin/uuid"
2272
2198
  }
2273
2199
  },
2274
- "node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/messages": {
2275
- "version": "27.2.0",
2276
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2277
- "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
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==",
2278
2204
  "license": "MIT",
2279
2205
  "dependencies": {
2280
2206
  "@types/uuid": "10.0.0",
2281
2207
  "class-transformer": "0.5.1",
2282
2208
  "reflect-metadata": "0.2.2",
2283
- "uuid": "11.0.5"
2284
- }
2285
- },
2286
- "node_modules/@cucumber/gherkin-utils/node_modules/commander": {
2287
- "version": "13.1.0",
2288
- "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
2289
- "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
2290
- "license": "MIT",
2291
- "engines": {
2292
- "node": ">=18"
2209
+ "uuid": "10.0.0"
2293
2210
  }
2294
2211
  },
2295
- "node_modules/@cucumber/gherkin-utils/node_modules/uuid": {
2296
- "version": "11.0.5",
2297
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
2298
- "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
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==",
2299
2216
  "funding": [
2300
2217
  "https://github.com/sponsors/broofa",
2301
2218
  "https://github.com/sponsors/ctavan"
2302
2219
  ],
2303
2220
  "license": "MIT",
2304
2221
  "bin": {
2305
- "uuid": "dist/esm/bin/uuid"
2222
+ "uuid": "dist/bin/uuid"
2306
2223
  }
2307
2224
  },
2308
2225
  "node_modules/@cucumber/html-formatter": {
2309
- "version": "21.14.0",
2310
- "resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.14.0.tgz",
2311
- "integrity": "sha512-vQqbmQZc0QiN4c+cMCffCItpODJlOlYtPG7pH6We096dBOa7u0ttDMjT6KrMAnQlcln54rHL46r408IFpuznAw==",
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==",
2312
2229
  "license": "MIT",
2313
2230
  "peerDependencies": {
2314
2231
  "@cucumber/messages": ">=18"
@@ -2339,14 +2256,15 @@
2339
2256
  }
2340
2257
  },
2341
2258
  "node_modules/@cucumber/messages": {
2342
- "version": "31.0.0",
2343
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-31.0.0.tgz",
2344
- "integrity": "sha512-Dqhatp4AjMsH9SREfWz3Q8nlGuwJMTW7YAW5L3OzRId86ZUEu/a8vIL1RO2c0agQefuBS2SVH9fEZ66ovrMYRA==",
2259
+ "version": "27.2.0",
2260
+ "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
2261
+ "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
2345
2262
  "license": "MIT",
2346
- "peer": true,
2347
2263
  "dependencies": {
2264
+ "@types/uuid": "10.0.0",
2348
2265
  "class-transformer": "0.5.1",
2349
- "reflect-metadata": "0.2.2"
2266
+ "reflect-metadata": "0.2.2",
2267
+ "uuid": "11.0.5"
2350
2268
  }
2351
2269
  },
2352
2270
  "node_modules/@cucumber/query": {
@@ -2363,9 +2281,9 @@
2363
2281
  }
2364
2282
  },
2365
2283
  "node_modules/@cucumber/tag-expressions": {
2366
- "version": "6.2.0",
2367
- "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.2.0.tgz",
2368
- "integrity": "sha512-KIF0eLcafHbWOuSDWFw0lMmgJOLdDRWjEL1kfXEWrqHmx2119HxVAr35WuEd9z542d3Yyg+XNqSr+81rIKqEdg==",
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==",
2369
2287
  "license": "MIT"
2370
2288
  },
2371
2289
  "node_modules/@eslint-community/eslint-utils": {
@@ -4134,9 +4052,9 @@
4134
4052
  "license": "MIT"
4135
4053
  },
4136
4054
  "node_modules/@types/node": {
4137
- "version": "24.10.1",
4138
- "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
4139
- "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
4055
+ "version": "25.0.0",
4056
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.0.tgz",
4057
+ "integrity": "sha512-rl78HwuZlaDIUSeUKkmogkhebA+8K1Hy7tddZuJ3D0xV8pZSfsYGTsliGUol1JPzu9EKnTxPC4L1fiWouStRew==",
4140
4058
  "license": "MIT",
4141
4059
  "dependencies": {
4142
4060
  "undici-types": "~7.16.0"
@@ -4768,9 +4686,9 @@
4768
4686
  "license": "MIT"
4769
4687
  },
4770
4688
  "node_modules/baseline-browser-mapping": {
4771
- "version": "2.8.30",
4772
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.30.tgz",
4773
- "integrity": "sha512-aTUKW4ptQhS64+v2d6IkPzymEzzhw+G0bA1g3uBRV3+ntkH+svttKseW5IOR4Ed6NUVKqnY7qT3dKvzQ7io4AA==",
4689
+ "version": "2.9.6",
4690
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.6.tgz",
4691
+ "integrity": "sha512-v9BVVpOTLB59C9E7aSnmIF8h7qRsFpx+A2nugVMTszEOMcfjlZMsXRm4LF23I3Z9AJxc8ANpIvzbzONoX9VJlg==",
4774
4692
  "license": "Apache-2.0",
4775
4693
  "bin": {
4776
4694
  "baseline-browser-mapping": "dist/cli.js"
@@ -4822,9 +4740,9 @@
4822
4740
  }
4823
4741
  },
4824
4742
  "node_modules/browserslist": {
4825
- "version": "4.28.0",
4826
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz",
4827
- "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==",
4743
+ "version": "4.28.1",
4744
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",
4745
+ "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",
4828
4746
  "funding": [
4829
4747
  {
4830
4748
  "type": "opencollective",
@@ -4841,11 +4759,11 @@
4841
4759
  ],
4842
4760
  "license": "MIT",
4843
4761
  "dependencies": {
4844
- "baseline-browser-mapping": "^2.8.25",
4845
- "caniuse-lite": "^1.0.30001754",
4846
- "electron-to-chromium": "^1.5.249",
4762
+ "baseline-browser-mapping": "^2.9.0",
4763
+ "caniuse-lite": "^1.0.30001759",
4764
+ "electron-to-chromium": "^1.5.263",
4847
4765
  "node-releases": "^2.0.27",
4848
- "update-browserslist-db": "^1.1.4"
4766
+ "update-browserslist-db": "^1.2.0"
4849
4767
  },
4850
4768
  "bin": {
4851
4769
  "browserslist": "cli.js"
@@ -4959,9 +4877,9 @@
4959
4877
  }
4960
4878
  },
4961
4879
  "node_modules/caniuse-lite": {
4962
- "version": "1.0.30001756",
4963
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001756.tgz",
4964
- "integrity": "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A==",
4880
+ "version": "1.0.30001760",
4881
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz",
4882
+ "integrity": "sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==",
4965
4883
  "funding": [
4966
4884
  {
4967
4885
  "type": "opencollective",
@@ -5652,9 +5570,9 @@
5652
5570
  "license": "MIT"
5653
5571
  },
5654
5572
  "node_modules/electron-to-chromium": {
5655
- "version": "1.5.259",
5656
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.259.tgz",
5657
- "integrity": "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==",
5573
+ "version": "1.5.267",
5574
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz",
5575
+ "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==",
5658
5576
  "license": "ISC"
5659
5577
  },
5660
5578
  "node_modules/emittery": {
@@ -6941,9 +6859,9 @@
6941
6859
  }
6942
6860
  },
6943
6861
  "node_modules/iconv-lite": {
6944
- "version": "0.7.0",
6945
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",
6946
- "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
6862
+ "version": "0.7.1",
6863
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.1.tgz",
6864
+ "integrity": "sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==",
6947
6865
  "license": "MIT",
6948
6866
  "dependencies": {
6949
6867
  "safer-buffer": ">= 2.1.2 < 3.0.0"
@@ -9537,9 +9455,9 @@
9537
9455
  }
9538
9456
  },
9539
9457
  "node_modules/luxon": {
9540
- "version": "3.7.1",
9541
- "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.1.tgz",
9542
- "integrity": "sha512-RkRWjA926cTvz5rAb1BqyWkKbbjzCGchDUIKMCUvNi17j6f6j8uHGDV82Aqcqtzd+icoYpELmG3ksgGiFNNcNg==",
9458
+ "version": "3.6.1",
9459
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.6.1.tgz",
9460
+ "integrity": "sha512-tJLxrKJhO2ukZ5z0gyjY1zPh3Rh88Ej9P7jNrZiHMUXHae1yvI2imgOZtL1TO8TW6biMMKfTtAOoEJANgtWBMQ==",
9543
9461
  "license": "MIT",
9544
9462
  "engines": {
9545
9463
  "node": ">=12"
@@ -9990,9 +9908,9 @@
9990
9908
  }
9991
9909
  },
9992
9910
  "node_modules/nwsapi": {
9993
- "version": "2.2.22",
9994
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.22.tgz",
9995
- "integrity": "sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ==",
9911
+ "version": "2.2.23",
9912
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.23.tgz",
9913
+ "integrity": "sha512-7wfH4sLbt4M0gCDzGE6vzQBo0bfTKjU7Sfpqy/7gs1qBfYz2vEJH6vXcBKpO3+6Yu1telwd0t9HpyOoLEQQbIQ==",
9996
9914
  "license": "MIT"
9997
9915
  },
9998
9916
  "node_modules/object-assign": {
@@ -10049,22 +9967,22 @@
10049
9967
  }
10050
9968
  },
10051
9969
  "node_modules/object.getownpropertydescriptors": {
10052
- "version": "2.1.8",
10053
- "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.8.tgz",
10054
- "integrity": "sha512-qkHIGe4q0lSYMv0XI4SsBTJz3WaURhLvd0lKSgtVuOsJ2krg4SgMw3PIRQFMp07yi++UR3se2mkcLqsBNpBb/A==",
9970
+ "version": "2.1.9",
9971
+ "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.9.tgz",
9972
+ "integrity": "sha512-mt8YM6XwsTTovI+kdZdHSxoyF2DI59up034orlC9NfweclcWOt7CVascNNLp6U+bjFVCVCIh9PwS76tDM/rH8g==",
10055
9973
  "dev": true,
10056
9974
  "license": "MIT",
10057
9975
  "dependencies": {
10058
- "array.prototype.reduce": "^1.0.6",
10059
- "call-bind": "^1.0.7",
9976
+ "array.prototype.reduce": "^1.0.8",
9977
+ "call-bind": "^1.0.8",
10060
9978
  "define-properties": "^1.2.1",
10061
- "es-abstract": "^1.23.2",
10062
- "es-object-atoms": "^1.0.0",
10063
- "gopd": "^1.0.1",
10064
- "safe-array-concat": "^1.1.2"
9979
+ "es-abstract": "^1.24.0",
9980
+ "es-object-atoms": "^1.1.1",
9981
+ "gopd": "^1.2.0",
9982
+ "safe-array-concat": "^1.1.3"
10065
9983
  },
10066
9984
  "engines": {
10067
- "node": ">= 0.8"
9985
+ "node": ">= 0.4"
10068
9986
  },
10069
9987
  "funding": {
10070
9988
  "url": "https://github.com/sponsors/ljharb"
@@ -10517,18 +10435,21 @@
10517
10435
  "@cucumber/messages": ">=19.1.4 <28"
10518
10436
  }
10519
10437
  },
10520
- "node_modules/playwright-bdd/node_modules/@cucumber/messages": {
10521
- "version": "27.2.0",
10522
- "resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-27.2.0.tgz",
10523
- "integrity": "sha512-f2o/HqKHgsqzFLdq6fAhfG1FNOQPdBdyMGpKwhb7hZqg0yZtx9BVqkTyuoNk83Fcvk3wjMVfouFXXHNEk4nddA==",
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==",
10524
10442
  "license": "MIT",
10525
- "dependencies": {
10526
- "@types/uuid": "10.0.0",
10527
- "class-transformer": "0.5.1",
10528
- "reflect-metadata": "0.2.2",
10529
- "uuid": "11.0.5"
10443
+ "peerDependencies": {
10444
+ "@cucumber/messages": ">=18"
10530
10445
  }
10531
10446
  },
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
+ },
10532
10453
  "node_modules/playwright-bdd/node_modules/commander": {
10533
10454
  "version": "13.1.0",
10534
10455
  "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
@@ -10579,19 +10500,6 @@
10579
10500
  "url": "https://opencollective.com/express"
10580
10501
  }
10581
10502
  },
10582
- "node_modules/playwright-bdd/node_modules/uuid": {
10583
- "version": "11.0.5",
10584
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.5.tgz",
10585
- "integrity": "sha512-508e6IcKLrhxKdBbcA2b4KQZlLVp2+J5UwQ6F7Drckkc5N9ZJwFa4TgWtsww9UG8fGHbm6gbV19TdM5pQ4GaIA==",
10586
- "funding": [
10587
- "https://github.com/sponsors/broofa",
10588
- "https://github.com/sponsors/ctavan"
10589
- ],
10590
- "license": "MIT",
10591
- "bin": {
10592
- "uuid": "dist/esm/bin/uuid"
10593
- }
10594
- },
10595
10503
  "node_modules/playwright-core": {
10596
10504
  "version": "1.53.2",
10597
10505
  "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.53.2.tgz",
@@ -10708,6 +10616,34 @@
10708
10616
  "node": ">= 6"
10709
10617
  }
10710
10618
  },
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
+ },
10711
10647
  "node_modules/property-expr": {
10712
10648
  "version": "2.0.6",
10713
10649
  "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
@@ -10784,9 +10720,9 @@
10784
10720
  "license": "MIT"
10785
10721
  },
10786
10722
  "node_modules/react": {
10787
- "version": "19.2.0",
10788
- "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz",
10789
- "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==",
10723
+ "version": "19.2.3",
10724
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz",
10725
+ "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==",
10790
10726
  "license": "MIT",
10791
10727
  "peer": true,
10792
10728
  "engines": {
@@ -10794,16 +10730,16 @@
10794
10730
  }
10795
10731
  },
10796
10732
  "node_modules/react-dom": {
10797
- "version": "19.2.0",
10798
- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz",
10799
- "integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==",
10733
+ "version": "19.2.3",
10734
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz",
10735
+ "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==",
10800
10736
  "license": "MIT",
10801
10737
  "peer": true,
10802
10738
  "dependencies": {
10803
10739
  "scheduler": "^0.27.0"
10804
10740
  },
10805
10741
  "peerDependencies": {
10806
- "react": "^19.2.0"
10742
+ "react": "^19.2.3"
10807
10743
  }
10808
10744
  },
10809
10745
  "node_modules/react-error-boundary": {
@@ -12170,9 +12106,9 @@
12170
12106
  }
12171
12107
  },
12172
12108
  "node_modules/update-browserslist-db": {
12173
- "version": "1.1.4",
12174
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz",
12175
- "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==",
12109
+ "version": "1.2.2",
12110
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz",
12111
+ "integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==",
12176
12112
  "funding": [
12177
12113
  {
12178
12114
  "type": "opencollective",
@@ -12253,6 +12189,19 @@
12253
12189
  "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
12254
12190
  "license": "MIT"
12255
12191
  },
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
+ },
12256
12205
  "node_modules/v8-to-istanbul": {
12257
12206
  "version": "9.3.0",
12258
12207
  "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",
@@ -12618,15 +12567,18 @@
12618
12567
  "license": "ISC"
12619
12568
  },
12620
12569
  "node_modules/yaml": {
12621
- "version": "2.8.1",
12622
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
12623
- "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
12570
+ "version": "2.8.2",
12571
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz",
12572
+ "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==",
12624
12573
  "license": "ISC",
12625
12574
  "bin": {
12626
12575
  "yaml": "bin.mjs"
12627
12576
  },
12628
12577
  "engines": {
12629
12578
  "node": ">= 14.6"
12579
+ },
12580
+ "funding": {
12581
+ "url": "https://github.com/sponsors/eemeli"
12630
12582
  }
12631
12583
  },
12632
12584
  "node_modules/yargs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.5.10-n18-experimental",
3
+ "version": "0.5.12-n18-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -37,6 +37,7 @@
37
37
  "msw": "1.2.3",
38
38
  "playwright": "1.53.2",
39
39
  "playwright-bdd": "8.3.1",
40
+ "properties-reader": "2.3.0",
40
41
  "supports-color": "8.1.1"
41
42
  },
42
43
  "bin": {
@@ -1,14 +1,17 @@
1
1
  // @ts-check
2
2
  const { defineConfig, devices } = require('@playwright/test');
3
3
  const path = require('path');
4
- const numCPUs = require('os').cpus().length;
4
+ import configConstants from './src/core/playwright/constants/configConstants';
5
+ import { getRunStage } from './src/core/playwright/configuration/ConfigurationHelper';
6
+
7
+ const stage = getRunStage();
5
8
 
6
9
  export default defineConfig({
7
- testDir: path.join(path.resolve(process.cwd()), 'uat'),
8
- outputDir: path.join(process.cwd(), 'uat', 'test-results'),
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'),
9
12
  fullyParallel: true,
10
13
  retries: process.env.CI ? 2 : 0,
11
- reporter: [['html', { outputFolder: path.join(process.cwd(), 'uat', 'playwright-report'), open: "always" }]],
14
+ reporter: [['html', { outputFolder: path.join(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright-report'), open: "always" }]],
12
15
  timeout: 60 * 1000,
13
16
  expect: {
14
17
  timeout: 5 * 1000,
@@ -26,7 +29,7 @@ export default defineConfig({
26
29
  name: 'chromium',
27
30
  use: {
28
31
  ...devices['Desktop Chrome'],
29
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
32
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
30
33
  },
31
34
  dependencies: ['setup'],
32
35
  },
@@ -39,7 +42,7 @@ export default defineConfig({
39
42
  },
40
43
  use: {
41
44
  ...devices['Desktop Firefox'],
42
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
45
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
43
46
  },
44
47
  dependencies: ['setup'],
45
48
  },
@@ -52,7 +55,7 @@ export default defineConfig({
52
55
  },
53
56
  use: {
54
57
  ...devices['Desktop Safari'],
55
- storageState: path.resolve(process.cwd(), 'uat', 'playwright/.auth/user.json')
58
+ storageState: path.resolve(process.cwd(), configConstants.TEST_SLICE_FOLDER, stage, 'playwright/.auth/user.json')
56
59
  },
57
60
  dependencies: ['setup'],
58
61
  },