Skip to content

Commit

Permalink
Fix 'should evaluate viral load status' test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmale committed Sep 12, 2024
1 parent c6d7cba commit c4ca7e6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/form-engine.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit c4ca7e6

Please sign in to comment.