Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Shandling committed Nov 22, 2024
1 parent a680903 commit ad1dca2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/components/StatusIndicator/StatusIndicator.tests.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { render, screen, fireEvent, act } from "@testing-library/react";
import { render, screen, fireEvent } from "@testing-library/react";

import StatusIndicator from "./StatusIndicator";

Expand All @@ -16,9 +16,7 @@ describe("Status indicator", () => {
<StatusIndicator value="online" tooltip={{ tooltipText: TOOLTIP_TEXT }} />
);

await act(async () => {
fireEvent.mouseEnter(screen.getByText("Online"));
});
await fireEvent.mouseEnter(screen.getByText("Online"));

expect(screen.getByText(TOOLTIP_TEXT)).toBeInTheDocument();
});
Expand Down

0 comments on commit ad1dca2

Please sign in to comment.