feat(v2): add multiple extra features from the pdf slides
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user