import { render, screen } from "@testing-library/react"; import { describe, expect, it } from "vitest"; import { Dialog, DialogContent, DialogDescription, DialogTitle, } from "./dialog"; describe("Dialog FocusScope integration", () => { it("mounts an open dialog without a ref update loop", () => { render( Focus scope check Dialog content is mounted. , ); expect(screen.getByText("Focus scope check")).toBeInTheDocument(); }); });