shoc-frontend-new/src/test/app/(protected)/workorders/wizard-sidebar-summary-rows.test.ts
Arthur Bassi 61fbad7e1b fix(work-orders): stop sending customer on create
AccountId is resolved from Location on the server.
Create UI matches AAP: required Site, optional Service, no Account picker.
2026-08-25 22:26:01 -03:00

11 lines
545 B
TypeScript

import { describe, expect, it } from "vitest";
import { buildWizardSidebarSummaryRows } from "@/app/(protected)/workorders/_components/wizard/wizard-sidebar-summary-rows";
import { EMPTY_WIZARD_DRAFT } from "@/domain/work-orders/types/work-order-wizard";
describe("buildWizardSidebarSummaryRows", () => {
it("omits Account from the live summary", () => {
const labels = buildWizardSidebarSummaryRows(EMPTY_WIZARD_DRAFT).map(([label]) => label);
expect(labels).not.toContain("Account");
expect(labels).toContain("Site");
});
});