import { render, screen } from "@testing-library/react"; import { describe, expect, it } from "vitest"; import { Workbench } from "../../src/components/Workbench"; describe("Scan Tools workbench", () => { it("opens with a bounded local workflow and no content", () => { render(); expect( screen.getByRole("heading", { name: "Correct pages, assemble a document, then export.", }), ).toBeInTheDocument(); expect( screen.getByRole("heading", { name: "No pages yet" }), ).toBeInTheDocument(); expect( screen.getByText(/Four-corner perspective correction/u), ).toBeInTheDocument(); expect(screen.getByLabelText("Add images or camera pages")).toHaveAttribute( "capture", "environment", ); }); });