mirror of
https://github.com/fleetdm/fleet
synced 2026-04-25 23:47:25 +00:00
19 lines
556 B
TypeScript
19 lines
556 B
TypeScript
import React from "react";
|
|
import { screen } from "@testing-library/react";
|
|
import { renderWithSetup } from "test/test-utils";
|
|
|
|
import PillCell from "./PillCell";
|
|
|
|
const PERFORMANCE_IMPACT = { indicator: "Minimal", id: 3 };
|
|
|
|
describe("Pill cell", () => {
|
|
it("renders pill text and tooltip on hover", async () => {
|
|
const { user } = renderWithSetup(
|
|
<PillCell value={PERFORMANCE_IMPACT} hostDetails />
|
|
);
|
|
|
|
await user.hover(screen.getByText("Minimal"));
|
|
|
|
expect(screen.getByText(/little to no impact/i)).toBeInTheDocument();
|
|
});
|
|
});
|