@testim/testim-cli 3.280.0 → 3.281.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.
@@ -562,11 +562,11 @@ function updateRemoteRunFailure(body) {
562
562
  * @return {Promise<Array[import('../../../services/src/grid/mobileGridService').MobileDevice] | null>}
563
563
  */
564
564
 
565
- async function getMobileDevicesFromGrid({ projectType, gridId, companyId, selectors }) {
565
+ async function getMobileDevicesFromGrid({ projectId, projectType, gridId, companyId, selectors }) {
566
566
  let url = `${GRID_PATH}/mobileDevices/${gridId}/${companyId}?projectType=${projectType}`;
567
567
  url = selectors ? `${url}&selectors=${encodeURIComponent(selectors)}` : url;
568
568
  try {
569
- return pRetry(() => getWithAuth({ url }), { retries: DEFAULT_REQUEST_RETRY });
569
+ return pRetry(() => getWithAuth(url, { projectId }), { retries: DEFAULT_REQUEST_RETRY });
570
570
  } catch (err) {
571
571
  logger.warn('could\'nt get devices from headspin grid.', { err });
572
572
  return null;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@testim/testim-cli",
3
- "version": "3.280.0",
3
+ "version": "3.281.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@testim/testim-cli",
9
- "version": "3.280.0",
9
+ "version": "3.281.0",
10
10
  "license": "Proprietary",
11
11
  "dependencies": {
12
12
  "@applitools/eyes-sdk-core": "13.11.21",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testim/testim-cli",
3
- "version": "3.280.0",
3
+ "version": "3.281.0",
4
4
  "description": "Command line interface for running Testing on your CI",
5
5
  "author": "Oren Rubin",
6
6
  "contributors": [{
@@ -76,9 +76,9 @@ class WorkerAppium extends BaseWorker {
76
76
  _executionId, _testId, _testResultId,
77
77
  _options: { project: projectId },
78
78
  } = testRunHandler;
79
- const { projectData: { type: projectType }, company: { companyId }, gridId } = this.options;
79
+ const { projectData: { type: projectType }, company: { companyId }, gridData: { gridId } } = this.options;
80
80
 
81
- const selectedDeviceArr = await testimServicesApi.getMobileDevicesFromGrid({ projectType, companyId, gridId, selectors: `device_id:${activeSession.capabilities.udid}` });
81
+ const selectedDeviceArr = await testimServicesApi.getMobileDevicesFromGrid({ projectId, projectType, companyId, gridId, selectors: `device_id:${activeSession.capabilities.udid}` });
82
82
  const deviceName = selectedDeviceArr[0]?.name;
83
83
 
84
84
  const device = {