browserstack-cypress-cli 1.32.3 → 1.32.5
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.
|
@@ -424,7 +424,10 @@ Cypress.Commands.add('getAccessibilityResults', () => {
|
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
|
|
427
|
-
Cypress.Commands.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
if (!Cypress.Commands.hasOwnProperty('_browserstackSDKQueryAdded')) {
|
|
428
|
+
Cypress.Commands.addQuery('performScanSubjectQuery', function (chaining, setTimeout) {
|
|
429
|
+
this.set('timeout', setTimeout);
|
|
430
|
+
return () => cy.getSubjectFromChain(chaining);
|
|
431
|
+
});
|
|
432
|
+
Cypress.Commands._browserstackSDKQueryAdded = true;
|
|
433
|
+
}
|
package/bin/helpers/utils.js
CHANGED
|
@@ -1179,10 +1179,17 @@ exports.getNumberOfSpecFiles = (bsConfig, args, cypressConfig, turboScaleSession
|
|
|
1179
1179
|
logger.debug(`${files ? files.length : 0} spec files found`);
|
|
1180
1180
|
|
|
1181
1181
|
if (turboScaleSession) {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1182
|
+
if (bsConfig.run_settings.cypress_config_file && bsConfig.run_settings.cypress_config_filename !== 'false') {
|
|
1183
|
+
const configFilePath = path.resolve(bsConfig.run_settings.cypressConfigFilePath);
|
|
1184
|
+
const directory = path.join(path.dirname(configFilePath), '/');
|
|
1185
|
+
// remove unwanted path prefix for turboscale
|
|
1186
|
+
files = files.map((x) => { return path.join('', x.split(directory)[1]) })
|
|
1187
|
+
// setting specs for turboScale as we don't have patched API for turboscale so we will rely on info from CLI
|
|
1188
|
+
bsConfig.run_settings.specs = files;
|
|
1189
|
+
} else {
|
|
1190
|
+
files = files.map((x) => { return path.join(testFolderPath, x.split(testFolderPath)[1]) })
|
|
1191
|
+
bsConfig.run_settings.specs = files;
|
|
1192
|
+
}
|
|
1186
1193
|
}
|
|
1187
1194
|
return files;
|
|
1188
1195
|
};
|