Files
2026-09-01 14:34:51 +02:00

25 lines
789 B
TypeScript

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(<Workbench />);
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",
);
});
});