refactor: test run case status messages duplication
This commit is contained in:
18
frontend/types/testRunCaseStatus.ts
Normal file
18
frontend/types/testRunCaseStatus.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// The status of each test case in test run
|
||||
type TestRunCaseStatusUidType = 'untested' | 'passed' | 'failed' | 'retest' | 'skipped';
|
||||
|
||||
type TestRunCaseStatusType = {
|
||||
uid: TestRunCaseStatusUidType;
|
||||
color: string;
|
||||
chartColor: string;
|
||||
};
|
||||
|
||||
type TestRunCaseStatusMessages = {
|
||||
untested: string;
|
||||
passed: string;
|
||||
failed: string;
|
||||
retest: string;
|
||||
skipped: string;
|
||||
};
|
||||
|
||||
export type { TestRunCaseStatusUidType, TestRunCaseStatusType, TestRunCaseStatusMessages };
|
||||
@@ -1,17 +0,0 @@
|
||||
type TestStatusUidType = 'untested' | 'passed' | 'failed' | 'retest' | 'skipped';
|
||||
|
||||
type TestStatusType = {
|
||||
uid: TestStatusUidType;
|
||||
color: string;
|
||||
chartColor: string;
|
||||
};
|
||||
|
||||
type TestStatusMessages = {
|
||||
untested: string;
|
||||
passed: string;
|
||||
failed: string;
|
||||
retest: string;
|
||||
skipped: string;
|
||||
};
|
||||
|
||||
export type { TestStatusUidType, TestStatusType, TestStatusMessages };
|
||||
Reference in New Issue
Block a user