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 } from "vite-plus/test";
import { ThreadSyncStatusPill } from "./ThreadSyncStatusPill";
describe("ThreadSyncStatusPill", () => {
it.each([
["loading", "Loading messages..."],
["syncing", "Syncing messages..."],
] as const)("renders the %s message sync phase", (phase, label) => {
const markup = renderToStaticMarkup(<ThreadSyncStatusPill phase={phase} />);
expect(markup).toContain('role="status"');
expect(markup).toContain('data-thread-sync-drawer="true"');
expect(markup).toContain("chat-composer-drawer-surface");
expect(markup).toContain("chat-composer-drawer-attached");
expect(markup).toContain("chat-composer-drawer-slot");
expect(markup).toContain("pb-composer-overlap-1.5");
expect(markup).toContain(label);
expect(markup).not.toContain("animate-");
});
});