feat(v2): add multiple extra features from the pdf slides

This commit is contained in:
2026-07-09 01:22:02 +03:30
parent ae240e7ac1
commit 20a43d5c9a
16 changed files with 1003 additions and 239 deletions

View File

@@ -5,11 +5,19 @@ vi.mock("react-quick-pinch-zoom", () => ({
default: ({ children }) => <div>{children}</div>
}));
vi.mock("./lib/api.js", () => ({
getOperations: () => Promise.resolve({ operations: [] }),
listStates: () => Promise.resolve({ states: [] }),
uploadImage: vi.fn(),
applyStateOperation: vi.fn(),
combineStates: vi.fn()
}));
describe("App", () => {
it("renders the processing studio immediately", () => {
it("renders the academic workspace immediately", () => {
render(<App />);
expect(screen.getByText("Spatial Image Enhancer Pro")).toBeInTheDocument();
expect(screen.getAllByText("Original").length).toBeGreaterThan(0);
expect(screen.getAllByText("Processed").length).toBeGreaterThan(0);
expect(screen.getByText("Academic Image Processing Workspace")).toBeInTheDocument();
expect(screen.getByText("Image States")).toBeInTheDocument();
expect(screen.getByText("Combine Selected States")).toBeInTheDocument();
});
});