@mablhq/mabl-cli 2.51.28 → 2.51.32

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.
@@ -244,13 +244,13 @@ async function executeRunCloudTest(test, browsers, branchName, apiClient, maybeD
244
244
  loggingProvider_1.logger.info(chalk.cyan(`API URL: `, chalk.magenta(effectiveApiUrl)));
245
245
  }
246
246
  if (applicationId || environmentId) {
247
- const deploymentsResult = await apiClient.queryDeploymentEntities(workspaceId);
247
+ const deploymentsResult = await apiClient.queryDeploymentEntities(workspaceId, environmentId, applicationId);
248
248
  const testType = (_a = test.test_type) !== null && _a !== void 0 ? _a : mablApi_1.TestTypeEnum.Browser;
249
249
  const expectedDeploymentType = (0, runUtil_1.getExpectedDeploymentType)(testType);
250
250
  const foundDeployments = deploymentsResult.deployments
251
251
  ? deploymentsResult.deployments.filter((deployment) => (!applicationId || deployment.application_id === applicationId) &&
252
252
  (!environmentId || deployment.environment_id === environmentId) &&
253
- deployment.deployment_type === expectedDeploymentType)
253
+ (0, runUtil_1.isDeploymentMatchByType)(deployment, expectedDeploymentType))
254
254
  : [];
255
255
  if (!foundDeployments.length) {
256
256
  throw new Error('No configuration was found for the applicationId/environmentId specified');