chore: export csv with human-readable labels (#325)

This commit is contained in:
kimatata
2025-11-08 23:09:34 +09:00
committed by GitHub
parent 12b5a1babe
commit b25bcfdaf3
5 changed files with 397 additions and 7 deletions

36
backend/config/enums.js Normal file
View File

@@ -0,0 +1,36 @@
// Enum mappings for database numeric values to human-readable labels
// These correspond to the frontend config/selection.ts configurations
// The status of each test case in test run
const testRunCaseStatus = ['untested', 'passed', 'failed', 'retest', 'skipped'];
// The status of each test run
const testRunStatus = ['new', 'inProgress', 'underReview', 'rejected', 'done', 'closed'];
// Priority levels
const priorities = ['critical', 'high', 'medium', 'low'];
// Test types
const testTypes = [
'other',
'security',
'performance',
'accessibility',
'functional',
'acceptance',
'usability',
'smokeSanity',
'compatibility',
'destructive',
'regression',
'automated',
'manual',
];
// Automation status
const automationStatus = ['automated', 'automation-not-required', 'cannot-be-automated', 'obsolete'];
// Templates
const templates = ['text', 'step'];
export { testRunCaseStatus, testRunStatus, priorities, testTypes, automationStatus, templates };