test: fix test code improperly using/missing 'await' (#2560)

This commit is contained in:
Braden MacDonald
2025-10-24 14:31:51 -07:00
committed by GitHub
parent c54c21e2b4
commit 157e2464aa
49 changed files with 286 additions and 297 deletions

View File

@@ -46,7 +46,7 @@ describe('<CreditSection />', () => {
const inputElement = await findByTestId('minimum-grade-credit-input');
expect(inputElement.value).toBe('10');
await fireEvent.change(inputElement, { target: { value: '.01' } });
fireEvent.change(inputElement, { target: { value: '.01' } });
await findByText('Not able to set passing grade to less than: 0.1.');
});
});