mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 20:42:05 +00:00
AccountId is resolved from Location on the server. Create UI matches AAP: required Site, optional Service, no Account picker.
11 lines
545 B
TypeScript
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");
|
|
});
|
|
});
|