mejoras en el modal de los testcases

This commit is contained in:
Juan
2026-05-27 11:51:17 +02:00
parent 19ea13dadd
commit 1b638f192e
89 changed files with 1458 additions and 629 deletions
+12 -4
View File
@@ -48,10 +48,18 @@ function yamlToLegacy(yamlTest) {
description: yamlTest.description || yamlTest.title || '',
status: yamlTest.automation_status || 'manual',
file: yamlTest.file || '',
steps: (yamlTest.steps || []).map(s => s.action || s),
automatable: cf.original_automatable || [],
notYet: cf.original_notYet || [],
dependencies: cf.original_dependencies || [],
steps: (yamlTest.steps || []).map(s => {
if (typeof s === 'string') {
return { action: s, expected: '' };
}
return {
action: s.action || s,
expected: s.expected || ''
};
}),
automatable: yamlTest.automatable || cf.original_automatable || [],
notYet: yamlTest.notYet || cf.original_notYet || [],
dependencies: yamlTest.dependencies || cf.original_dependencies || [],
};
// Preserve extra fields that the old data sometimes had