fleet/frontend/components/Modal/Modal.tests.tsx
Jahziel Villasana-Espinoza 9f29fd1ce9
33509 feature branch (#38038)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #33509

All changes were approved in PRs to this feature branch.

---------

Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
Co-authored-by: Ian Littman <iansltx@gmail.com>
Co-authored-by: jacobshandling <61553566+jacobshandling@users.noreply.github.com>
Co-authored-by: George Karr <georgekarrv@users.noreply.github.com>
2026-01-08 16:37:46 -05:00

17 lines
368 B
TypeScript

import React from "react";
import { noop } from "lodash";
import { render, screen } from "@testing-library/react";
import Modal from "./Modal";
describe("Modal", () => {
it("renders title", () => {
render(
<Modal title="Foobar" onExit={noop}>
<div>test</div>
</Modal>
);
expect(screen.getByText("Foobar")).toBeVisible();
});
});