@zohodesk/testinglibrary 0.5.2-n18-experimental → 0.5.4-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 +8 -0
- package/build/core/playwright/builtInFixtures/page.js +2 -1
- package/build/core/playwright/configuration/ConfigurationHelper.js +5 -7
- package/build/core/playwright/custom-commands.js +1 -1
- package/build/core/playwright/env-initializer.js +9 -10
- package/build/core/playwright/helpers/auth/getUsers.js +14 -14
- package/build/core/playwright/helpers/auth/loginSteps.js +5 -4
- package/build/core/playwright/helpers/configFileNameProvider.js +8 -15
- package/build/core/playwright/readConfigFile.js +7 -4
- package/build/core/playwright/test-runner.js +2 -4
- package/build/test/core/playwright/helpers/__tests__/configFileNameProvider.test.js +13 -54
- package/build/test/core/playwright/helpers/__tests__/getUsers_ListOfActors.test.js +26 -29
- package/npm-shrinkwrap.json +180 -129
- package/package.json +1 -2
- package/build/core/playwright/constants/configConstants.js +0 -17
- package/build/core/playwright/helpers/configPathResolver.js +0 -38
- package/build/test/core/playwright/helpers/__tests__/configPathResolver.test.js +0 -55
- package/test-results/.last-run.json +0 -4
- package/unit_reports/unit-report.html +0 -260
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/testinglibrary",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4-n18-experimental",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@zohodesk/testinglibrary",
|
|
9
|
-
"version": "0.5.
|
|
9
|
+
"version": "0.5.4-n18-experimental",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
@@ -26,7 +26,6 @@
|
|
|
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",
|
|
30
29
|
"supports-color": "8.1.1"
|
|
31
30
|
},
|
|
32
31
|
"bin": {
|
|
@@ -2037,6 +2036,67 @@
|
|
|
2037
2036
|
"regexp-match-indices": "1.0.2"
|
|
2038
2037
|
}
|
|
2039
2038
|
},
|
|
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
|
+
},
|
|
2040
2100
|
"node_modules/@cucumber/cucumber/node_modules/brace-expansion": {
|
|
2041
2101
|
"version": "2.0.2",
|
|
2042
2102
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
|
@@ -2075,6 +2135,15 @@
|
|
|
2075
2135
|
"url": "https://github.com/sponsors/isaacs"
|
|
2076
2136
|
}
|
|
2077
2137
|
},
|
|
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
|
+
},
|
|
2078
2147
|
"node_modules/@cucumber/cucumber/node_modules/minimatch": {
|
|
2079
2148
|
"version": "9.0.5",
|
|
2080
2149
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
|
@@ -2102,13 +2171,27 @@
|
|
|
2102
2171
|
"node": ">=10"
|
|
2103
2172
|
}
|
|
2104
2173
|
},
|
|
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
|
+
},
|
|
2105
2187
|
"node_modules/@cucumber/gherkin": {
|
|
2106
|
-
"version": "
|
|
2107
|
-
"resolved": "https://registry.npmjs.org/@cucumber/gherkin/-/gherkin-
|
|
2108
|
-
"integrity": "sha512-
|
|
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==",
|
|
2109
2191
|
"license": "MIT",
|
|
2192
|
+
"peer": true,
|
|
2110
2193
|
"dependencies": {
|
|
2111
|
-
"@cucumber/messages": ">=
|
|
2194
|
+
"@cucumber/messages": ">=31.0.0 <32"
|
|
2112
2195
|
}
|
|
2113
2196
|
},
|
|
2114
2197
|
"node_modules/@cucumber/gherkin-streams": {
|
|
@@ -2175,16 +2258,7 @@
|
|
|
2175
2258
|
"uuid": "10.0.0"
|
|
2176
2259
|
}
|
|
2177
2260
|
},
|
|
2178
|
-
"node_modules/@cucumber/gherkin-utils/node_modules/
|
|
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": {
|
|
2261
|
+
"node_modules/@cucumber/gherkin-utils/node_modules/@cucumber/gherkin/node_modules/uuid": {
|
|
2188
2262
|
"version": "10.0.0",
|
|
2189
2263
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",
|
|
2190
2264
|
"integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
|
|
@@ -2197,35 +2271,44 @@
|
|
|
2197
2271
|
"uuid": "dist/bin/uuid"
|
|
2198
2272
|
}
|
|
2199
2273
|
},
|
|
2200
|
-
"node_modules/@cucumber/gherkin/node_modules/@cucumber/messages": {
|
|
2201
|
-
"version": "
|
|
2202
|
-
"resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-
|
|
2203
|
-
"integrity": "sha512-
|
|
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==",
|
|
2204
2278
|
"license": "MIT",
|
|
2205
2279
|
"dependencies": {
|
|
2206
2280
|
"@types/uuid": "10.0.0",
|
|
2207
2281
|
"class-transformer": "0.5.1",
|
|
2208
2282
|
"reflect-metadata": "0.2.2",
|
|
2209
|
-
"uuid": "
|
|
2283
|
+
"uuid": "11.0.5"
|
|
2210
2284
|
}
|
|
2211
2285
|
},
|
|
2212
|
-
"node_modules/@cucumber/gherkin/node_modules/
|
|
2213
|
-
"version": "
|
|
2214
|
-
"resolved": "https://registry.npmjs.org/
|
|
2215
|
-
"integrity": "sha512
|
|
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"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
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==",
|
|
2216
2299
|
"funding": [
|
|
2217
2300
|
"https://github.com/sponsors/broofa",
|
|
2218
2301
|
"https://github.com/sponsors/ctavan"
|
|
2219
2302
|
],
|
|
2220
2303
|
"license": "MIT",
|
|
2221
2304
|
"bin": {
|
|
2222
|
-
"uuid": "dist/bin/uuid"
|
|
2305
|
+
"uuid": "dist/esm/bin/uuid"
|
|
2223
2306
|
}
|
|
2224
2307
|
},
|
|
2225
2308
|
"node_modules/@cucumber/html-formatter": {
|
|
2226
|
-
"version": "21.
|
|
2227
|
-
"resolved": "https://registry.npmjs.org/@cucumber/html-formatter/-/html-formatter-21.
|
|
2228
|
-
"integrity": "sha512-
|
|
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==",
|
|
2229
2312
|
"license": "MIT",
|
|
2230
2313
|
"peerDependencies": {
|
|
2231
2314
|
"@cucumber/messages": ">=18"
|
|
@@ -2256,15 +2339,14 @@
|
|
|
2256
2339
|
}
|
|
2257
2340
|
},
|
|
2258
2341
|
"node_modules/@cucumber/messages": {
|
|
2259
|
-
"version": "
|
|
2260
|
-
"resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-
|
|
2261
|
-
"integrity": "sha512-
|
|
2342
|
+
"version": "31.0.0",
|
|
2343
|
+
"resolved": "https://registry.npmjs.org/@cucumber/messages/-/messages-31.0.0.tgz",
|
|
2344
|
+
"integrity": "sha512-Dqhatp4AjMsH9SREfWz3Q8nlGuwJMTW7YAW5L3OzRId86ZUEu/a8vIL1RO2c0agQefuBS2SVH9fEZ66ovrMYRA==",
|
|
2262
2345
|
"license": "MIT",
|
|
2346
|
+
"peer": true,
|
|
2263
2347
|
"dependencies": {
|
|
2264
|
-
"@types/uuid": "10.0.0",
|
|
2265
2348
|
"class-transformer": "0.5.1",
|
|
2266
|
-
"reflect-metadata": "0.2.2"
|
|
2267
|
-
"uuid": "11.0.5"
|
|
2349
|
+
"reflect-metadata": "0.2.2"
|
|
2268
2350
|
}
|
|
2269
2351
|
},
|
|
2270
2352
|
"node_modules/@cucumber/query": {
|
|
@@ -2281,9 +2363,9 @@
|
|
|
2281
2363
|
}
|
|
2282
2364
|
},
|
|
2283
2365
|
"node_modules/@cucumber/tag-expressions": {
|
|
2284
|
-
"version": "6.
|
|
2285
|
-
"resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-6.
|
|
2286
|
-
"integrity": "sha512-
|
|
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==",
|
|
2287
2369
|
"license": "MIT"
|
|
2288
2370
|
},
|
|
2289
2371
|
"node_modules/@eslint-community/eslint-utils": {
|
|
@@ -2370,9 +2452,9 @@
|
|
|
2370
2452
|
}
|
|
2371
2453
|
},
|
|
2372
2454
|
"node_modules/@eslint/eslintrc": {
|
|
2373
|
-
"version": "3.3.
|
|
2374
|
-
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.
|
|
2375
|
-
"integrity": "sha512-
|
|
2455
|
+
"version": "3.3.3",
|
|
2456
|
+
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz",
|
|
2457
|
+
"integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==",
|
|
2376
2458
|
"license": "MIT",
|
|
2377
2459
|
"peer": true,
|
|
2378
2460
|
"dependencies": {
|
|
@@ -2382,7 +2464,7 @@
|
|
|
2382
2464
|
"globals": "^14.0.0",
|
|
2383
2465
|
"ignore": "^5.2.0",
|
|
2384
2466
|
"import-fresh": "^3.2.1",
|
|
2385
|
-
"js-yaml": "^4.1.
|
|
2467
|
+
"js-yaml": "^4.1.1",
|
|
2386
2468
|
"minimatch": "^3.1.2",
|
|
2387
2469
|
"strip-json-comments": "^3.1.1"
|
|
2388
2470
|
},
|
|
@@ -4686,9 +4768,9 @@
|
|
|
4686
4768
|
"license": "MIT"
|
|
4687
4769
|
},
|
|
4688
4770
|
"node_modules/baseline-browser-mapping": {
|
|
4689
|
-
"version": "2.8.
|
|
4690
|
-
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.
|
|
4691
|
-
"integrity": "sha512-
|
|
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==",
|
|
4692
4774
|
"license": "Apache-2.0",
|
|
4693
4775
|
"bin": {
|
|
4694
4776
|
"baseline-browser-mapping": "dist/cli.js"
|
|
@@ -4877,9 +4959,9 @@
|
|
|
4877
4959
|
}
|
|
4878
4960
|
},
|
|
4879
4961
|
"node_modules/caniuse-lite": {
|
|
4880
|
-
"version": "1.0.
|
|
4881
|
-
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.
|
|
4882
|
-
"integrity": "sha512-
|
|
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==",
|
|
4883
4965
|
"funding": [
|
|
4884
4966
|
{
|
|
4885
4967
|
"type": "opencollective",
|
|
@@ -5570,9 +5652,9 @@
|
|
|
5570
5652
|
"license": "MIT"
|
|
5571
5653
|
},
|
|
5572
5654
|
"node_modules/electron-to-chromium": {
|
|
5573
|
-
"version": "1.5.
|
|
5574
|
-
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.
|
|
5575
|
-
"integrity": "sha512-
|
|
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==",
|
|
5576
5658
|
"license": "ISC"
|
|
5577
5659
|
},
|
|
5578
5660
|
"node_modules/emittery": {
|
|
@@ -5784,27 +5866,6 @@
|
|
|
5784
5866
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
5785
5867
|
}
|
|
5786
5868
|
},
|
|
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
5869
|
"node_modules/eslint": {
|
|
5809
5870
|
"version": "9.39.1",
|
|
5810
5871
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",
|
|
@@ -9259,6 +9320,27 @@
|
|
|
9259
9320
|
}
|
|
9260
9321
|
}
|
|
9261
9322
|
},
|
|
9323
|
+
"node_modules/jsdom/node_modules/escodegen": {
|
|
9324
|
+
"version": "2.1.0",
|
|
9325
|
+
"resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz",
|
|
9326
|
+
"integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==",
|
|
9327
|
+
"license": "BSD-2-Clause",
|
|
9328
|
+
"dependencies": {
|
|
9329
|
+
"esprima": "^4.0.1",
|
|
9330
|
+
"estraverse": "^5.2.0",
|
|
9331
|
+
"esutils": "^2.0.2"
|
|
9332
|
+
},
|
|
9333
|
+
"bin": {
|
|
9334
|
+
"escodegen": "bin/escodegen.js",
|
|
9335
|
+
"esgenerate": "bin/esgenerate.js"
|
|
9336
|
+
},
|
|
9337
|
+
"engines": {
|
|
9338
|
+
"node": ">=6.0"
|
|
9339
|
+
},
|
|
9340
|
+
"optionalDependencies": {
|
|
9341
|
+
"source-map": "~0.6.1"
|
|
9342
|
+
}
|
|
9343
|
+
},
|
|
9262
9344
|
"node_modules/jsesc": {
|
|
9263
9345
|
"version": "3.1.0",
|
|
9264
9346
|
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
|
@@ -9455,9 +9537,9 @@
|
|
|
9455
9537
|
}
|
|
9456
9538
|
},
|
|
9457
9539
|
"node_modules/luxon": {
|
|
9458
|
-
"version": "3.
|
|
9459
|
-
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.
|
|
9460
|
-
"integrity": "sha512-
|
|
9540
|
+
"version": "3.7.1",
|
|
9541
|
+
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.7.1.tgz",
|
|
9542
|
+
"integrity": "sha512-RkRWjA926cTvz5rAb1BqyWkKbbjzCGchDUIKMCUvNi17j6f6j8uHGDV82Aqcqtzd+icoYpELmG3ksgGiFNNcNg==",
|
|
9461
9543
|
"license": "MIT",
|
|
9462
9544
|
"engines": {
|
|
9463
9545
|
"node": ">=12"
|
|
@@ -10435,21 +10517,18 @@
|
|
|
10435
10517
|
"@cucumber/messages": ">=19.1.4 <28"
|
|
10436
10518
|
}
|
|
10437
10519
|
},
|
|
10438
|
-
"node_modules/playwright-bdd/node_modules/@cucumber/
|
|
10439
|
-
"version": "
|
|
10440
|
-
"resolved": "https://registry.npmjs.org/@cucumber/
|
|
10441
|
-
"integrity": "sha512-
|
|
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==",
|
|
10442
10524
|
"license": "MIT",
|
|
10443
|
-
"
|
|
10444
|
-
"@
|
|
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"
|
|
10445
10530
|
}
|
|
10446
10531
|
},
|
|
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
10532
|
"node_modules/playwright-bdd/node_modules/commander": {
|
|
10454
10533
|
"version": "13.1.0",
|
|
10455
10534
|
"resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
|
@@ -10500,6 +10579,19 @@
|
|
|
10500
10579
|
"url": "https://opencollective.com/express"
|
|
10501
10580
|
}
|
|
10502
10581
|
},
|
|
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
|
+
},
|
|
10503
10595
|
"node_modules/playwright-core": {
|
|
10504
10596
|
"version": "1.53.2",
|
|
10505
10597
|
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.53.2.tgz",
|
|
@@ -10616,34 +10708,6 @@
|
|
|
10616
10708
|
"node": ">= 6"
|
|
10617
10709
|
}
|
|
10618
10710
|
},
|
|
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
10711
|
"node_modules/property-expr": {
|
|
10648
10712
|
"version": "2.0.6",
|
|
10649
10713
|
"resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
|
|
@@ -12189,19 +12253,6 @@
|
|
|
12189
12253
|
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
|
|
12190
12254
|
"license": "MIT"
|
|
12191
12255
|
},
|
|
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
12256
|
"node_modules/v8-to-istanbul": {
|
|
12206
12257
|
"version": "9.3.0",
|
|
12207
12258
|
"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
|
+
"version": "0.5.4-n18-experimental",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,6 @@
|
|
|
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",
|
|
41
40
|
"supports-color": "8.1.1"
|
|
42
41
|
},
|
|
43
42
|
"bin": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
class configConstants {
|
|
8
|
-
static DEFAULT_CONFIG_DIR = 'default';
|
|
9
|
-
static BETA_DIR = 'beta';
|
|
10
|
-
static ACTOR_DIR = 'actors';
|
|
11
|
-
static UAT_CONFIG_FILE = 'uat.config.js';
|
|
12
|
-
static INDEX_FILE = 'index.js';
|
|
13
|
-
static SETTINGS_FILE = 'settings.json';
|
|
14
|
-
static TEST_SUMMARY_FILE = 'test-summary.json';
|
|
15
|
-
static STAGE_CONFIG_MAP_FILE = 'uat/conf_path_map.properties';
|
|
16
|
-
}
|
|
17
|
-
exports.default = 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
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _fs = _interopRequireDefault(require("fs"));
|
|
5
|
-
var _path = _interopRequireDefault(require("path"));
|
|
6
|
-
var _propertiesReader = _interopRequireDefault(require("properties-reader"));
|
|
7
|
-
var _configPathResolver = require("../../../../../core/playwright/helpers/configPathResolver");
|
|
8
|
-
var _logger = require("../../../../../utils/logger");
|
|
9
|
-
var _configConstants = _interopRequireDefault(require("../../../../../core/playwright/constants/configConstants"));
|
|
10
|
-
jest.mock('fs');
|
|
11
|
-
jest.mock('path');
|
|
12
|
-
jest.mock('properties-reader');
|
|
13
|
-
jest.mock('../../../../../utils/logger', () => ({
|
|
14
|
-
Logger: {
|
|
15
|
-
log: jest.fn(),
|
|
16
|
-
INFO_TYPE: 'info',
|
|
17
|
-
FAILURE_TYPE: 'failure'
|
|
18
|
-
}
|
|
19
|
-
}));
|
|
20
|
-
describe('getConfigPath', () => {
|
|
21
|
-
const mockProps = {
|
|
22
|
-
get: jest.fn(),
|
|
23
|
-
set: jest.fn()
|
|
24
|
-
};
|
|
25
|
-
beforeEach(() => {
|
|
26
|
-
jest.clearAllMocks();
|
|
27
|
-
_propertiesReader.default.mockReturnValue(mockProps);
|
|
28
|
-
_path.default.resolve.mockImplementation((...args) => args.join('/'));
|
|
29
|
-
});
|
|
30
|
-
test('should return config path when properties file exists and has mapping', () => {
|
|
31
|
-
_fs.default.existsSync.mockReturnValue(true);
|
|
32
|
-
mockProps.get.mockReturnValue('uat/conf');
|
|
33
|
-
const result = (0, _configPathResolver.getConfigPath)('uat');
|
|
34
|
-
expect(_fs.default.existsSync).toHaveBeenCalledWith(expect.stringContaining(_configConstants.default.STAGE_CONFIG_MAP_FILE));
|
|
35
|
-
expect(_propertiesReader.default).toHaveBeenCalled();
|
|
36
|
-
expect(mockProps.get).toHaveBeenCalledWith('uat');
|
|
37
|
-
expect(result).toBe('uat/conf');
|
|
38
|
-
expect(_logger.Logger.log).not.toHaveBeenCalledWith(_logger.Logger.FAILURE_TYPE, expect.any(String));
|
|
39
|
-
});
|
|
40
|
-
test('should log info and use default mapping if file does not exist', () => {
|
|
41
|
-
_fs.default.existsSync.mockReturnValue(false);
|
|
42
|
-
mockProps.get.mockImplementation(key => key === 'uat' ? 'uat/conf' : undefined);
|
|
43
|
-
const result = (0, _configPathResolver.getConfigPath)('uat');
|
|
44
|
-
expect(_logger.Logger.log).toHaveBeenCalledWith(_logger.Logger.INFO_TYPE, expect.stringContaining('not found'));
|
|
45
|
-
expect(mockProps.set).toHaveBeenCalledWith('uat', 'uat/conf');
|
|
46
|
-
expect(result).toBe('uat/conf');
|
|
47
|
-
});
|
|
48
|
-
test('should log failure if config mapping not found for stage', () => {
|
|
49
|
-
_fs.default.existsSync.mockReturnValue(true);
|
|
50
|
-
mockProps.get.mockReturnValue(undefined);
|
|
51
|
-
const result = (0, _configPathResolver.getConfigPath)('stageX');
|
|
52
|
-
expect(_logger.Logger.log).toHaveBeenCalledWith(_logger.Logger.FAILURE_TYPE, expect.stringContaining('stageX'));
|
|
53
|
-
expect(result).toBeUndefined();
|
|
54
|
-
});
|
|
55
|
-
});
|