feat(FN-3890): include MemoryView in dashboard quality test allowlist

Adds MemoryView to the dashboard test quality gate allowlist so it participates in the curated default test run.

Fusion-Task-Id: FN-3890
This commit is contained in:
Fusion
2026-05-09 14:15:43 -07:00
committed by gsxdsm
parent 235ba11712
commit c995ab3d90
4 changed files with 51 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
import { render, screen, waitFor } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { MemoryView } from "../MemoryView";
import { loadAllAppCssBaseOnly } from "../../test/cssFixture";
const mockUseMemoryData = vi.fn();
@@ -308,3 +309,13 @@ describe("MemoryView", () => {
expect(screen.queryByRole("button", { name: "Dream Now" })).not.toBeInTheDocument();
});
});
describe("MemoryView CSS contract", () => {
it("uses flex sizing for the memory editor and keeps flex-chain min-height guards", async () => {
const css = await loadAllAppCssBaseOnly();
expect(css).not.toMatch(/\.memory-editor-container\s*\{[^}]*height\s*:\s*calc\(100vh/i);
expect(css).toMatch(/\.memory-editor-container\s*\{[^}]*flex\s*:\s*1\s+1\s+auto;[^}]*min-height\s*:/);
expect(css).toMatch(/\.memory-view-content\s*\{[^}]*min-height\s*:\s*0\s*;/);
});
});