feat: comment to test run's case (#390)
This commit is contained in:
@@ -44,6 +44,7 @@ type RunCaseType = {
|
||||
caseId: number;
|
||||
status: number;
|
||||
editState: 'notChanged' | 'changed' | 'new' | 'deleted';
|
||||
commentCount?: number;
|
||||
};
|
||||
|
||||
type CaseAttachmentType = {
|
||||
|
||||
32
frontend/types/comment.ts
Normal file
32
frontend/types/comment.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
type CommentType = {
|
||||
id: number;
|
||||
commentableType: 'RunCase' | 'Run' | 'Case';
|
||||
commentableId: number;
|
||||
userId: number;
|
||||
content: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
User: {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
};
|
||||
};
|
||||
|
||||
type CommentMessages = {
|
||||
comments: string;
|
||||
noComments: string;
|
||||
addComment: string;
|
||||
save: string;
|
||||
cancel: string;
|
||||
placeholder: string;
|
||||
notIncludedInRun: string;
|
||||
commentAdded: string;
|
||||
failedToAddComment: string;
|
||||
commentUpdated: string;
|
||||
failedToUpdateComment: string;
|
||||
commentDeleted: string;
|
||||
failedToDeleteComment: string;
|
||||
};
|
||||
|
||||
export type { CommentType, CommentMessages };
|
||||
@@ -89,6 +89,7 @@ type RunMessages = {
|
||||
selected: string;
|
||||
tags: string;
|
||||
selectTags: string;
|
||||
comments: string;
|
||||
};
|
||||
|
||||
type RunDetailMessages = {
|
||||
@@ -102,6 +103,9 @@ type RunDetailMessages = {
|
||||
preconditions: string;
|
||||
expectedResult: string;
|
||||
detailsOfTheStep: string;
|
||||
caseDetail: string;
|
||||
comments: string;
|
||||
history: string;
|
||||
};
|
||||
|
||||
export type {
|
||||
|
||||
Reference in New Issue
Block a user