Implemented test run editor's test status update

This commit is contained in:
Takeshi Kimata
2024-04-21 19:56:06 +09:00
parent 99923eea9d
commit 7c2e4b0d0e
5 changed files with 90 additions and 11 deletions

View File

@@ -40,6 +40,7 @@ type Props = {
cases: CaseType[];
selectedKeys: Selection;
onSelectionChange: React.Dispatch<React.SetStateAction<Selection>>;
onStatusChange: (changeCaseId: number, status: number) => {};
onIncludeCase: (includeCaseId: number) => {};
onExcludeCase: (excludeCaseId: number) => {};
};
@@ -48,6 +49,7 @@ export default function TestCaseSelector({
cases,
selectedKeys,
onSelectionChange,
onStatusChange,
onIncludeCase,
onExcludeCase,
}: Props) {
@@ -121,7 +123,7 @@ export default function TestCaseSelector({
<DropdownItem
key={index}
startContent={renderStatusIcon(runCaseStatus.uid)}
onClick={() => {}}
onPress={() => onStatusChange(testCase.id, index)}
>
{runCaseStatus.name}
</DropdownItem>