WFDASH-WEBAPP/src/components/item-status-pill.test.tsx
SJCoetz 18334721cb feat(invoicing): add QuickBooks invoicing flow and print functionality
Add complete end-to-end QuickBooks invoicing workflow for the invoicing page:
- Add `jspdf` dependency for client-side PDF generation
- Implement updated item status handling with fallback for new invoice statuses
- Add server-side proxy API for secure QuickBooks customer lookup
- Build utilities to combine QuickBooks invoices and picking slips into a single PDF
- Add invoicing view models for row grouping, payload construction, and status checks
- Add full test coverage for all new components, APIs, and utilities
- Include feature design documentation and sample n8n workflow config
2026-07-09 09:44:55 +02:00

12 lines
397 B
TypeScript

import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { ItemStatusPill } from "./item-status-pill";
describe("ItemStatusPill", () => {
it("renders ready_invoice without crashing", () => {
render(<ItemStatusPill status={"ready_invoice" as never} />);
expect(screen.getByText("Ready for Invoice")).toBeInTheDocument();
});
});