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
12 lines
397 B
TypeScript
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();
|
|
});
|
|
});
|