Files
fusion/packages/dashboard/app/components/__tests__/TestModeBanner.test.tsx
Fusion (runfusion.ai) 9c2b61eec6 feat(FN-5204): add test mode activation across settings, engine, and dashboard
- Add core settings schema/types support for testMode with model-resolution override handling
- Enforce engine session lane overrides in test mode with targeted helper coverage
- Add dashboard settings toggle plus persistent test-mode banner and related component tests
- Update settings documentation and parity/roundtrip tests for the new test mode behavior
2026-05-22 00:15:14 -07:00

16 lines
552 B
TypeScript

import { describe, expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import { TestModeBanner } from "../TestModeBanner";
describe("TestModeBanner", () => {
it("renders nothing when inactive", () => {
const { container } = render(<TestModeBanner isActive={false} />);
expect(container).toBeEmptyDOMElement();
});
it("renders status copy when active", () => {
render(<TestModeBanner isActive />);
expect(screen.getByRole("status")).toHaveTextContent("Test mode — no real AI calls");
});
});