Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
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(
<PreviewChromeRow
url="https://example.com/dashboard?mode=edit&tab=1#notes"
loading={false}
canGoBack={false}
canGoForward={false}
refreshDisabled={false}
onBack={vi.fn()}
onForward={vi.fn()}
onRefresh={vi.fn()}
onSubmit={vi.fn()}
/>,
);
expect(markup).toContain('value="https://example.com/dashboard?mode=edit&tab=1#notes"');
});
});