From 0a88e997989e4567ff39c09f4fc5ea5a4c4fab02 Mon Sep 17 00:00:00 2001 From: Tom Chapman <tchapman000@gmail.com> Date: Fri, 21 Jun 2024 15:22:33 -0700 Subject: [PATCH] fix failing test --- .../tests/unit/components/survey/SurveyReportSettings.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/met-web/tests/unit/components/survey/SurveyReportSettings.test.tsx b/met-web/tests/unit/components/survey/SurveyReportSettings.test.tsx index f87834e4b..a254c78da 100644 --- a/met-web/tests/unit/components/survey/SurveyReportSettings.test.tsx +++ b/met-web/tests/unit/components/survey/SurveyReportSettings.test.tsx @@ -128,6 +128,9 @@ describe('Survey report settings tests', () => { await waitFor(() => { expect(fetchSurveyReportSettingsMock).toHaveBeenCalledTimes(1); + }); + + await waitFor(() => { expect(screen.getByText(surveyReportSettingOne.question)).toBeVisible(); expect(screen.getByText(surveyReportSettingTwo.question)).toBeVisible(); });