refactor: test run case status messages duplication

This commit is contained in:
Takeshi Kimata
2024-07-21 15:30:04 +09:00
parent f797ae2581
commit 1da19ed43c
12 changed files with 91 additions and 69 deletions

View File

@@ -1,6 +1,6 @@
import { TestTypeType } from '@/types/testType';
import { PriorityType } from '@/types/priority';
import { TestStatusType } from '@/types/testStatus';
import { TestRunCaseStatusType } from '@/types/testRunCaseStatus';
const roles = [{ uid: 'administrator' }, { uid: 'user' }];
@@ -13,7 +13,18 @@ const locales = [
{ code: 'ja', name: '日本語' },
];
const testRunCaseStatus: TestStatusType[] = [
// The status of each test run
const testRunStatus = [
{ uid: 'new' },
{ uid: 'inProgress' },
{ uid: 'underReview' },
{ uid: 'rejected' },
{ uid: 'done' },
{ uid: 'closed' },
];
// The status of each test case in test run
const testRunCaseStatus: TestRunCaseStatusType[] = [
{
uid: 'untested',
color: 'primary',
@@ -57,15 +68,6 @@ const automationStatus = [
const templates = [{ uid: 'text' }, { uid: 'step' }];
const testRunStatus = [
{ uid: 'new' },
{ uid: 'inProgress' },
{ uid: 'underReview' },
{ uid: 'rejected' },
{ uid: 'done' },
{ uid: 'closed' },
];
export {
roles,
memberRoles,