mejoras en el modal de los testcases
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user