Release Scan Tools v0.1.0
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user