chore: export csv with human-readable labels (#325)
This commit is contained in:
36
backend/config/enums.js
Normal file
36
backend/config/enums.js
Normal 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 };
|
||||
Reference in New Issue
Block a user