mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
Merging during freeze with approval from all stakeholders, including verbal approval from @sharon-fdm Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
19 lines
596 B
TypeScript
19 lines
596 B
TypeScript
import React from "react";
|
|
import { screen } from "@testing-library/react";
|
|
import { renderWithSetup } from "test/test-utils";
|
|
|
|
import PerformanceImpactCell from "./PerformanceImpactCell";
|
|
|
|
const PERFORMANCE_IMPACT = { indicator: "Minimal", id: 3 };
|
|
|
|
describe("Query performance cell", () => {
|
|
it("renders pill text and tooltip on hover", async () => {
|
|
const { user } = renderWithSetup(
|
|
<PerformanceImpactCell value={PERFORMANCE_IMPACT} />
|
|
);
|
|
|
|
await user.hover(screen.getByText("Minimal"));
|
|
|
|
expect(screen.getByText(/little to no impact/i)).toBeInTheDocument();
|
|
});
|
|
});
|