@@ -154,7 +167,7 @@ export default function TestCaseSelector({
onStatusChange(testCase.id, index)}
+ onPress={() => onChangeStatus(testCase.id, index)}
>
{messages[runCaseStatus.uid]}
@@ -226,6 +239,29 @@ export default function TestCaseSelector({
onSelectionChange(keys);
};
+ // Test Case Detail
+ const [isTestCaseDetailDialogOpen, setIsTestCaseDetailDialogOpen] = useState(false);
+ const [showingTestCase, setShowingTestCase] = useState
({
+ id: 0,
+ title: '',
+ state: 0,
+ priority: 0,
+ type: 0,
+ automationStatus: 0,
+ description: '',
+ template: 0,
+ preConditions: '',
+ expectedResults: '',
+ folderId: 0,
+ });
+ const showTestCaseDetailDialog = (showTestCase: CaseType) => {
+ setIsTestCaseDetailDialogOpen(true);
+ setShowingTestCase(showTestCase);
+ };
+ const hideTestCaseDetailDialog = () => {
+ setIsTestCaseDetailDialogOpen(false);
+ };
+
return (
<>
+
+ onChangeStatus(showingCaseId, newStatus)}
+ messages={messages}
+ />
>
);
}
diff --git a/frontend/src/app/[locale]/projects/[projectId]/runs/[runId]/page.tsx b/frontend/src/app/[locale]/projects/[projectId]/runs/[runId]/page.tsx
index f53a060..b86c688 100644
--- a/frontend/src/app/[locale]/projects/[projectId]/runs/[runId]/page.tsx
+++ b/frontend/src/app/[locale]/projects/[projectId]/runs/[runId]/page.tsx
@@ -37,6 +37,24 @@ export default function Page({ params }: { params: { projectId: string; runId: s
excludeFromRun: t('exclude_from_run'),
noCasesFound: t('no_cases_found'),
areYouSureLeave: t('are_you_sure_leave'),
+ type: t('type'),
+ other: t('other'),
+ security: t('security'),
+ performance: t('performance'),
+ accessibility: t('accessibility'),
+ functional: t('functional'),
+ acceptance: t('acceptance'),
+ usability: t('usability'),
+ smokeSanity: t('smoke_sanity'),
+ compatibility: t('compatibility'),
+ destructive: t('destructive'),
+ regression: t('regression'),
+ automated: t('automated'),
+ manual: t('manual'),
+ preconditions: t('preconditions'),
+ expectedResult: t('expected_result'),
+ detailsOfTheStep: t('details_of_the_step'),
+ close: t('close'),
};
return ;
diff --git a/frontend/types/case.ts b/frontend/types/case.ts
index cdba0a8..ff945b6 100644
--- a/frontend/types/case.ts
+++ b/frontend/types/case.ts
@@ -123,12 +123,12 @@ type CaseMessages = {
template: string;
testDetail: string;
preconditions: string;
+ expectedResult: string;
step: string;
text: string;
steps: string;
newStep: string;
detailsOfTheStep: string;
- expectedResult: string;
deleteThisStep: string;
insertStep: string;
attachments: string;
diff --git a/frontend/types/run.ts b/frontend/types/run.ts
index 15285c7..93b72bf 100644
--- a/frontend/types/run.ts
+++ b/frontend/types/run.ts
@@ -83,6 +83,24 @@ type RunMessages = {
excludeFromRun: string;
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;
+ close: string;
};
export type { RunType, RunCaseType, RunStatusCountType, ProgressSeriesType, RunsMessages, RunMessages };