@testim/testim-cli 3.224.0 → 3.225.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/npm-shrinkwrap.json +3 -3
- package/package.json +1 -1
- package/services/gridService.js +20 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testim/testim-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.225.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@testim/testim-cli",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.225.0",
|
|
10
10
|
"license": "Proprietary",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@applitools/eyes-sdk-core": "13.0.0",
|
|
@@ -15012,7 +15012,7 @@
|
|
|
15012
15012
|
"version": "3.8.3",
|
|
15013
15013
|
"resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz",
|
|
15014
15014
|
"integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==",
|
|
15015
|
-
"deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
|
|
15015
|
+
"deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.",
|
|
15016
15016
|
"dependencies": {
|
|
15017
15017
|
"component-emitter": "^1.2.0",
|
|
15018
15018
|
"cookiejar": "^2.1.0",
|
package/package.json
CHANGED
package/services/gridService.js
CHANGED
|
@@ -236,7 +236,26 @@ function getOptionGrid(options) {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
async function getTestPlanGridData(options, testPlanData) {
|
|
239
|
-
|
|
239
|
+
const companyId = options.company.companyId;
|
|
240
|
+
try {
|
|
241
|
+
return await getGridDataByGridId(companyId, testPlanData.gridId, options.allGrids);
|
|
242
|
+
} catch (err) {
|
|
243
|
+
if (err instanceof ArgError) {
|
|
244
|
+
// this is a fallback to an old behavior that is wrong,
|
|
245
|
+
// we should remove it in the future
|
|
246
|
+
const testPlanDatas = await servicesApi.getTestPlan(options.project, options.testPlan);
|
|
247
|
+
if (testPlanDatas.length === 0) {
|
|
248
|
+
throw new ArgError(`no test plan to run ${options.testPlan}`);
|
|
249
|
+
}
|
|
250
|
+
const testPlanGrids = testPlanDatas.map(d => options.allGrids.find(grid => grid._id === d.gridId));
|
|
251
|
+
if (testPlanGrids.includes(undefined)) {
|
|
252
|
+
throw new ArgError('failed to find one of the test plan defined grid');
|
|
253
|
+
}
|
|
254
|
+
logger.warn('getTestPlanGridData used fallback and might cause test plans run on a unintended grid', { companyId });
|
|
255
|
+
return getSerializableObject(_.first(testPlanGrids));
|
|
256
|
+
}
|
|
257
|
+
throw err;
|
|
258
|
+
}
|
|
240
259
|
}
|
|
241
260
|
|
|
242
261
|
async function getGridData(options) {
|