function assert(condition: unknown, message = "assertion failed"): void {
if (!condition) throw new Error(message);
}
import { renderToStaticMarkup } from "react-dom/server";
import ActionToolbar, { ToolbarGroup, ToolbarSpacer } from "../src/components/ActionToolbar";
import ContentGrid, { FormGrid, FormLayout, GridItem } from "../src/components/ContentGrid";
import ContentSection from "../src/components/ContentSection";
import Dialog from "../src/components/Dialog";
import { DialogForm, DialogSection } from "../src/components/DialogAnatomy";
import DescriptionList, { DescriptionItem } from "../src/components/DescriptionList";
import DefinitionNodeIcon from "../src/components/DefinitionNodeIcon";
import DefinitionPalette, { DefinitionPaletteGroup, DefinitionPaletteItem } from "../src/components/DefinitionPalette";
import FilterBar from "../src/components/FilterBar";
import FloatingStatus from "../src/components/FloatingStatus";
import FormSection from "../src/components/FormSection";
import { PlatformLanguageProvider } from "../src/i18n/LanguageContext";
import MetricGrid from "../src/components/MetricGrid";
import LoadingFrame from "../src/components/LoadingFrame";
import PageActionBar from "../src/components/PageActionBar";
import SelectionList, { SelectionListItem, SelectionListItemContent } from "../src/components/SelectionList";
import StatePanel from "../src/components/StatePanel";
import ProductAvailabilityState from "../src/components/ProductAvailabilityState";
import WorkspaceLayout from "../src/components/WorkspaceLayout";
import WorkspaceFrame from "../src/components/WorkspaceFrame";
import WorkspaceActionBar from "../src/components/WorkspaceActionBar";
import Card from "../src/components/Card";
import FormField from "../src/components/FormField";
import ListSelectionFilter from "../src/components/ListSelectionFilter";
const tableCard = renderToStaticMarkup(Rows
);
assert(tableCard.includes('data-card-body-layout="table"'), "table cards explicitly declare zero-inset geometry even with a loading wrapper");
const wideField = renderToStaticMarkup();
assert(wideField.includes('class="form-field form-field-wide"'), "form fields retain layout classes on their labelled root");
const filterOptions = [{ value: "a", label: "A" }, { value: "b", label: "B" }];
for (const [selection, expectedCount] of [[null, 2], [[], 0], [["a"], 1]] as const) {
const filter = renderToStaticMarkup( undefined} />);
assert((filter.match(/checked=""/g) ?? []).length === expectedCount, "list filters distinguish unrestricted, none and explicit subset");
}
const progressFrame = renderToStaticMarkup(Preview
);
assert(progressFrame.includes('aria-busy="true"'), "the shared loading frame marks its content busy");
assert(progressFrame.includes('value="25"'), "measured progress is reported through a native progress bar");
assert(progressFrame.includes('aria-valuetext="1 of 4 files"'), "progress can describe real processed counts");
assert(!progressFrame.includes("loading-envelope"), "operation overlays can omit the envelope animation");
const unknownFrame = renderToStaticMarkup(Preview
);
assert(unknownFrame.includes("