refactor: test types messages duplication
This commit is contained in:
@@ -81,10 +81,6 @@ type CasesMessages = {
|
||||
delete: string;
|
||||
newTestCase: string;
|
||||
status: string;
|
||||
critical: string;
|
||||
high: string;
|
||||
medium: string;
|
||||
low: string;
|
||||
noCasesFound: string;
|
||||
caseTitle: string;
|
||||
caseDescription: string;
|
||||
@@ -102,19 +98,6 @@ type CaseMessages = {
|
||||
description: string;
|
||||
testCaseDescription: string;
|
||||
type: string;
|
||||
other: string;
|
||||
security: string;
|
||||
performance: string;
|
||||
accessibility: string;
|
||||
functional: string;
|
||||
acceptance: string;
|
||||
usability: string;
|
||||
smokeSanity: string;
|
||||
compatibility: string;
|
||||
destructive: string;
|
||||
regression: string;
|
||||
automated: string;
|
||||
manual: string;
|
||||
template: string;
|
||||
testDetail: string;
|
||||
preconditions: string;
|
||||
|
||||
@@ -80,19 +80,6 @@ type RunMessages = {
|
||||
noCasesFound: string;
|
||||
areYouSureLeave: string;
|
||||
type: string;
|
||||
other: string;
|
||||
security: string;
|
||||
performance: string;
|
||||
accessibility: string;
|
||||
functional: string;
|
||||
acceptance: string;
|
||||
usability: string;
|
||||
smokeSanity: string;
|
||||
compatibility: string;
|
||||
destructive: string;
|
||||
regression: string;
|
||||
automated: string;
|
||||
manual: string;
|
||||
preconditions: string;
|
||||
expectedResult: string;
|
||||
detailsOfTheStep: string;
|
||||
|
||||
37
frontend/types/testType.ts
Normal file
37
frontend/types/testType.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
type TestTypeUidType =
|
||||
| 'other'
|
||||
| 'security'
|
||||
| 'performance'
|
||||
| 'accessibility'
|
||||
| 'functional'
|
||||
| 'acceptance'
|
||||
| 'usability'
|
||||
| 'smokeSanity'
|
||||
| 'compatibility'
|
||||
| 'destructive'
|
||||
| 'regression'
|
||||
| 'automated'
|
||||
| 'manual';
|
||||
|
||||
type TestTypeType = {
|
||||
uid: TestTypeUidType;
|
||||
chartColor: string;
|
||||
};
|
||||
|
||||
type TestTypeMessages = {
|
||||
other: string;
|
||||
security: string;
|
||||
performance: string;
|
||||
accessibility: string;
|
||||
functional: string;
|
||||
acceptance: string;
|
||||
usability: string;
|
||||
smokeSanity: string;
|
||||
compatibility: string;
|
||||
destructive: string;
|
||||
regression: string;
|
||||
automated: string;
|
||||
manual: string;
|
||||
};
|
||||
|
||||
export type { TestTypeUidType, TestTypeType, TestTypeMessages };
|
||||
Reference in New Issue
Block a user