Adding specDir handling from develop

This commit is contained in:
Tyler Biethman
2022-02-22 17:20:51 -06:00
parent 59440ac2e5
commit 599cc48956

View File

@@ -793,11 +793,10 @@ const systemTests = {
return spec
}
if (options.testingType === 'component') {
return path.join(projectPath, spec)
}
const specDir = options.specDir
|| (options.testingType === 'component' ? '' : 'cypress/e2e')
return path.join(projectPath, 'cypress', 'e2e', spec)
return path.join(projectPath, specDir, spec)
})
// normalize the path to the spec