The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 10:15 UTC
test(web): keep the preview profile label helper private (#9997)
Julius Marminge committed
Sep 5, 2026 at 00:20 UTC
11cb88efc54c5690e25348ce5c889722a3615089
2 files changed
+2
-8
apps/web/src/components/preview/PreviewView.test.tsx
+1
-7
@@ -251,7 +251,7 @@ vi.mock("./AgentBrowserCursor", () => ({ AgentBrowserCursor: () => null }));
251
vi.mock("~/browser/BrowserSurfaceSlot", () => ({ BrowserSurfaceSlot: () => null }));
252
vi.mock("./usePreviewSession", () => ({ usePreviewSession: vi.fn() }));
253
254
-import { PreviewView, previewProfileName } from "./PreviewView";
254
+import { PreviewView } from "./PreviewView";
255
import { toastManager } from "~/components/ui/toast";
256
import { previewRuntimeTabId } from "~/browser/previewRuntimeTabId";
257
@@ -352,12 +352,6 @@ describe("PreviewView navigation", () => {
352
mocks.recordVisitForThread.mockClear();
353
});
354
355
- it("labels a tab whose saved profile was removed", () => {
356
- expect(previewProfileName(BUILT_IN_BROWSER_PROFILES, "profile-removed")).toBe(
357
- "Removed profile",
358
- );
359
- });
360
-
355
it("does not rerender while loading time passes", async () => {
356
vi.useFakeTimers();
357
mocks.loading = true;
apps/web/src/components/preview/PreviewView.tsx
+1
-1
@@ -76,7 +76,7 @@ interface Props {
76
) => void;
77
}
78
79
-export function previewProfileName(
79
+function previewProfileName(
80
profiles: ReadonlyArray<{ readonly id: string; readonly name: string }>,
81
profileId: string,
82
): string {