feat: refs #8698 add Cypress tests for Order Catalog and Supplier Balance, improve module name handling
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
83c0bfad0c
commit
04f1aae5a0
|
@ -123,7 +123,7 @@ pipeline {
|
|||
|
||||
def modules = sh(script: 'node test/cypress/docker/find/find.js', returnStdout: true).trim()
|
||||
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
|
||||
sh "cypress run --browser chromium --spec ${modules}|| true"
|
||||
sh "cypress run --browser chromium --spec '${modules}' || true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,9 @@ export function getModules(files) {
|
|||
const modules = [];
|
||||
for (const file of files) {
|
||||
if (file.startsWith('src/page')) {
|
||||
modules.push(CYPRESS_PREFIX + file.split('/')[2] + CYPRESS_SUFIX);
|
||||
modules.push(
|
||||
CYPRESS_PREFIX + file.split('/')[2].toLowerCase() + CYPRESS_SUFIX,
|
||||
);
|
||||
}
|
||||
}
|
||||
return modules;
|
||||
|
|
Loading…
Reference in New Issue