diff --git a/src/components/TestDetailsDialog/TestDetailsModal.tsx b/src/components/TestDetailsDialog/TestDetailsModal.tsx index 221b0ac4..bce9257e 100644 --- a/src/components/TestDetailsDialog/TestDetailsModal.tsx +++ b/src/components/TestDetailsDialog/TestDetailsModal.tsx @@ -62,9 +62,11 @@ const useStyles = makeStyles((theme) => ({ const TestDetailsModal: React.FunctionComponent<{ testRun: TestRun; + currentRunIndex: number; + totalTestRunCount: number; touched: boolean; handleClose: () => void; -}> = ({ testRun, touched, handleClose }) => { +}> = ({ testRun, currentRunIndex, totalTestRunCount, touched, handleClose }) => { const classes = useStyles(); const navigate = useNavigate(); const { enqueueSnackbar } = useSnackbar(); @@ -278,6 +280,9 @@ const TestDetailsModal: React.FunctionComponent<{ )} + + {currentRunIndex+1} of {totalTestRunCount} + {(testRun.status === TestStatus.unresolved || testRun.status === TestStatus.new) && ( diff --git a/src/components/TestDetailsDialog/index.tsx b/src/components/TestDetailsDialog/index.tsx index 1ac2e3cd..1a8c4c9b 100644 --- a/src/components/TestDetailsDialog/index.tsx +++ b/src/components/TestDetailsDialog/index.tsx @@ -68,6 +68,8 @@ export const TestDetailsDialog: React.FunctionComponent = () => { e.id === selectedTestRun.id)} + totalTestRunCount={testRuns.length} touched={touched} handleClose={() => handleNavigation()} />