fix(frontend): Await act calls in tests

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-11-21 16:55:49 +01:00
parent 2206349415
commit 614374768a
6 changed files with 11 additions and 11 deletions

View file

@ -61,7 +61,7 @@ describe('motd modal', () => {
expect(view.container).toMatchSnapshot()
const button = await screen.findByTestId('motd-dismiss')
act(() => {
await act(() => {
button.click()
})
expect(view.container).toMatchSnapshot()