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

This commit is contained in:
Alex Moreno 2025-03-05 13:06:39 +01:00
parent 83c0bfad0c
commit 04f1aae5a0
4 changed files with 4 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -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"
}
}
}

View File

@ -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;