@testim/testim-cli 3.221.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.
@@ -1,3 +1,5 @@
1
+ /* eslint-disable camelcase */
2
+
1
3
  'use strict';
2
4
 
3
5
  const crypto = require('crypto');
@@ -123,7 +125,7 @@ function readFileToBase64(fileLocation) {
123
125
  return fs.readFileSync(fileLocation, { encoding: 'base64' });
124
126
  }
125
127
 
126
- function setCustomExtension(customExtensionLocalLocation = '', extensions, lambdatestService) {
128
+ function setCustomExtension(customExtensionLocalLocation, extensions, lambdatestService) {
127
129
  if (lambdatestService && lambdatestService.isLambdatestRun() && utils.isURL(customExtensionLocalLocation)) {
128
130
  return;
129
131
  }
@@ -176,6 +178,9 @@ function _buildChromiumOptions(opts, browserOptions, testRunConfig, customExtens
176
178
  'profile.default_content_setting_values.automatic_downloads': CONTENT_SETTING.CONTENT_SETTING_ALLOW,
177
179
  // disable pdf viewer
178
180
  'plugins.always_open_pdf_externally': true,
181
+ // unintuitively stops download protection ("Dangerous file blocked")
182
+ // if needed in the future, consider adding --safebrowsing-disable-download-protection or --safebrowsing-disable-extension-blacklist to the chrome flags
183
+ 'safebrowsing.enabled': true,
179
184
  'profile.content_settings.exceptions.clipboard': {
180
185
  '[*.],*': { last_modified: Date.now(), setting: 1 },
181
186
  },
@@ -127,6 +127,7 @@ function reportExecutionStarted({
127
127
  remoteRunId,
128
128
  localRunUserId,
129
129
  isLocalRun,
130
+ intersections,
130
131
  }) {
131
132
  const isCiRun = require('../cli/isCiRun').isCi;
132
133
  return postAuth({
@@ -142,6 +143,7 @@ function reportExecutionStarted({
142
143
  config,
143
144
  resultLabels,
144
145
  remoteRunId,
146
+ intersections,
145
147
  metadata: {
146
148
  isCiRun,
147
149
  localRunUserId,
@@ -167,17 +169,17 @@ function reportExecutionFinished(status, executionId, projectId, success, tmsOpt
167
169
  }), DEFAULT_REQUEST_RETRY);
168
170
  }
169
171
 
170
- function getTestPlanTestList(projectId, names, planIds, branch) {
172
+ async function getTestPlanTestList(projectId, names, planIds, branch, intersections) {
171
173
  return utils.runWithRetries(() => postAuth({
172
174
  url: '/testPlan/list',
173
- body: { projectId, names, planIds, branch },
175
+ body: { projectId, names, planIds, branch, intersections },
174
176
  // people who send insane lists get a timeout :(
175
177
  timeout: 120000,
176
178
  }));
177
179
  }
178
180
 
179
181
  function getSuiteTestList({
180
- projectId, labels, testIds, testNames, testConfigNames, suiteNames, suiteIds, branch, rerunFailedByRunId, testConfigIds,
182
+ projectId, labels, testIds, testNames, testConfigNames, suiteNames, suiteIds, branch, rerunFailedByRunId, testConfigIds, intersections,
181
183
  }) {
182
184
  return utils.runWithRetries(() => postAuth({
183
185
  url: '/suite/v2/list',
@@ -192,6 +194,7 @@ function getSuiteTestList({
192
194
  branch,
193
195
  rerunFailedByRunId,
194
196
  testConfigIds,
197
+ intersections,
195
198
  },
196
199
  }));
197
200
  }