import { render, screen } from "@testing-library/react"; import { describe, expect, it, vi } from "vitest"; import { App } from "../../src/App"; describe("Privacy Tools", () => { it("renders the local workbench and standard shell", async () => { vi.stubGlobal( "fetch", vi.fn(async () => new Response("Not found", { status: 404 })), ); render(); expect( await screen.findByRole("heading", { name: "Privacy Tools" }), ).toBeVisible(); expect(await screen.findByText("Local & ephemeral")).toBeVisible(); expect(screen.getAllByText(/No anonymity promise/iu)).not.toHaveLength(0); }); });