feat(FN-3171): verify roadmap plugin migration, backend, and theme integrat

FN-3171 completed a multi-step verification of the roadmap plugin, covering migration artifact and record matrix validation, backend/API contract checks, and theme smoke tests for the RoadmapsView component, culminating in a verification documentation file.

Fusion-Task-Id: FN-3171
This commit is contained in:
Fusion
2026-05-10 06:46:52 -07:00
committed by gsxdsm
parent a344152a11
commit 6d7c33330c
2 changed files with 111 additions and 0 deletions

View File

@@ -135,6 +135,21 @@ const mockRoadmapHierarchy: RoadmapWithHierarchy = {
const mockAddToast = vi.fn();
describe("RoadmapsView", () => {
it.each(["dark", "light"])("renders roadmap host content without console errors in %s theme", async (theme) => {
const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => undefined);
document.documentElement.setAttribute("data-theme", theme);
render(<RoadmapsView addToast={mockAddToast} />);
await waitFor(() => {
expect(screen.getByText("Roadmaps")).toBeInTheDocument();
expect(screen.getByText("Q2 Roadmap")).toBeInTheDocument();
});
expect(consoleErrorSpy).not.toHaveBeenCalled();
consoleErrorSpy.mockRestore();
});
beforeEach(() => {
vi.clearAllMocks();
mockConfirm.mockReset();