- 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
16 lines
552 B
TypeScript
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");
|
|
});
|
|
});
|