From 3e853a20d80883906de29a8c9105f1937796c95d Mon Sep 17 00:00:00 2001 From: Alyssa Wang Date: Mon, 4 Dec 2023 10:59:53 -0500 Subject: [PATCH] change get to query (#412) Co-authored-by: Alyssa Wang --- .../TestRunProgressBar/__tests__/TestRunProgressBar.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });