Skip to content

Commit 384e79c

Browse files
committed
test: fix flaky dashboard it
1 parent 9779c3d commit 384e79c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/__tests__/Dashboard.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ describe("Dashboard", () => {
268268
}),
269269
).toBeVisible();
270270

271-
userEvent.type(screen.getByRole("searchbox"), "codegate-secrets");
271+
await userEvent.type(screen.getByRole("searchbox"), "codegate-secrets");
272272

273-
await waitFor(() =>
273+
waitFor(() =>
274274
expect(screen.getByTestId(/alerts-count/i)).toHaveTextContent("1"),
275275
);
276276
const row = within(screen.getByTestId("alerts-table")).getAllByRole(

0 commit comments

Comments
 (0)