|
|
|
@ -137,6 +137,17 @@ describe("ImageInputNode", () => { |
|
|
|
expect(img).toHaveAttribute("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg=="); |
|
|
|
}); |
|
|
|
|
|
|
|
it("should show the full image without cropping", () => { |
|
|
|
render( |
|
|
|
<TestWrapper> |
|
|
|
<ImageInputNode {...propsWithImage} /> |
|
|
|
</TestWrapper> |
|
|
|
); |
|
|
|
|
|
|
|
expect(screen.getByAltText("test-image.png")).toHaveClass("object-contain"); |
|
|
|
expect(screen.getByAltText("test-image.png")).not.toHaveClass("object-cover"); |
|
|
|
}); |
|
|
|
|
|
|
|
it("should not show drop zone when image is set", () => { |
|
|
|
render( |
|
|
|
<TestWrapper> |
|
|
|
|