await userEvent

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-04-01 10:43:58 +02:00
parent 659111711e
commit b1190bf676
36 changed files with 177 additions and 174 deletions
@@ -61,7 +61,7 @@ describe('RadarEntry', () => {
expect(screen.getByText(String(minProps.value))).toBeInTheDocument();
});
it('should render with description', () => {
it('should render with description', async () => {
render(
<ThemeProvider theme={lightTheme}>
<svg>
@@ -70,7 +70,7 @@ describe('RadarEntry', () => {
</ThemeProvider>,
);
userEvent.click(screen.getByRole('button'));
await userEvent.click(screen.getByRole('button'));
const radarEntry = screen.getByTestId('radar-entry');
expect(radarEntry).toBeInTheDocument();