import { renderToStaticMarkup } from "react-dom/server"; import { describe, expect, it, vi } from "vite-plus/test"; import { PreviewChromeRow } from "./PreviewChromeRow"; describe("PreviewChromeRow", () => { it("shows the complete URL while the address bar is not focused", () => { const markup = renderToStaticMarkup( , ); expect(markup).toContain('value="https://example.com/dashboard?mode=edit&tab=1#notes"'); }); });