Skip to content

Commit 0b95212

Browse files
committed
add: handling for different folder structure turboscale
1 parent 04331b9 commit 0b95212

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/helpers/utils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,13 @@ exports.getNumberOfSpecFiles = (bsConfig, args, cypressConfig, turboScaleSession
11121112
if (bsConfig.run_settings.cypressTestSuiteType === Constants.CYPRESS_V10_AND_ABOVE_TYPE) {
11131113
defaultSpecFolder = Constants.DEFAULT_CYPRESS_10_SPEC_PATH
11141114
testFolderPath = defaultSpecFolder
1115+
if (turboScaleSession) {
1116+
testFolderPath =
1117+
cypressConfig.integrationFolder &&
1118+
cypressConfig.integrationFolder !== '.'
1119+
? cypressConfig.integrationFolder
1120+
: defaultSpecFolder;
1121+
}
11151122
// Read cypress config if enforce_settings is not present
11161123
if(this.isUndefinedOrFalse(bsConfig.run_settings.enforce_settings) && !this.isUndefined(cypressConfig) && !this.isUndefined(cypressConfig.e2e)) {
11171124
if(!this.isUndefined(cypressConfig.e2e.specPattern)) {

0 commit comments

Comments
 (0)