import React from "react"; import { render, screen } from "@testing-library/react"; import InstallerActionCell from "./InstallerActionCell"; describe("InstallerAction cell", () => { it("renders add button if installer is available", async () => { render(); expect(screen.getByText(/add/i)).toBeInTheDocument(); }); it("renders --- if installer is unavailable", async () => { render(); expect(screen.getByText(/---/i)).toBeInTheDocument(); }); it("renders checkmark if installer is already added", async () => { render( ); expect(screen.getByTestId("success-icon")).toBeInTheDocument(); }); });