From c4ca7e6773a697cbb9a380a0a54bfcce5999f5f1 Mon Sep 17 00:00:00 2001 From: samuelmale Date: Thu, 12 Sep 2024 12:34:00 +0300 Subject: [PATCH] Fix 'should evaluate viral load status' test --- src/form-engine.test.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/form-engine.test.tsx b/src/form-engine.test.tsx index 87125e68..f50c2cf9 100644 --- a/src/form-engine.test.tsx +++ b/src/form-engine.test.tsx @@ -711,13 +711,12 @@ describe('Form engine component', () => { name: /unsuppressed/i, }); - // fireEvent.blur(viralLoadCountField, { target: { value: 30 } }); + await user.type(viralLoadCountField, '30'); + await user.tab(); - // await waitFor(() => { - // expect(viralLoadCountField).toHaveValue(30); - // expect(suppressedField).toBeChecked(); - // expect(unsuppressedField).not.toBeChecked(); - // }); + expect(viralLoadCountField).toHaveValue(30); + expect(suppressedField).toBeChecked(); + expect(unsuppressedField).not.toBeChecked(); }); it('should only show question when age is under 5', async () => {