chore: await userEvent in tests

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-04-01 14:12:22 +02:00
parent fbee9f49e5
commit 4fd45b202b
3 changed files with 8 additions and 8 deletions
@@ -38,7 +38,7 @@ describe('StatusCell', () => {
</TestApiProvider>,
);
userEvent.hover(rendered.getByTestId(client.mockBuild.id));
await userEvent.hover(rendered.getByTestId(client.mockBuild.id));
expect(
await rendered.findByText(formatStatus(client.mockBuild.buildStatus)),
).toBeInTheDocument();