diff --git a/client/src/components/TestSuite/TestRunProgressBar/__tests__/TestRunProgressBar.test.tsx b/client/src/components/TestSuite/TestRunProgressBar/__tests__/TestRunProgressBar.test.tsx index 87805d16b..53989b39c 100644 --- a/client/src/components/TestSuite/TestRunProgressBar/__tests__/TestRunProgressBar.test.tsx +++ b/client/src/components/TestSuite/TestRunProgressBar/__tests__/TestRunProgressBar.test.tsx @@ -61,7 +61,7 @@ describe('The TestRunProgressBar Component', () => { expect(testRunCancelled).toEqual(true); setTimeout(() => { - const progressBarElement = screen.getByTestId('progress-bar'); + const progressBarElement = screen.queryByTestId('progress-bar'); expect(progressBarElement).toBeNull(); }, 500); });