Test pagina e JS per conversione BMP->PNG. Refs #107
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -313,6 +313,10 @@ class TestImageCropInclusion:
|
||||
html = logged_in_client.get("/maker/recipes/3/tasks").get_data(as_text=True)
|
||||
assert "js/image-crop.js" in html
|
||||
assert "tmfCropBeforeUpload(file)" in html
|
||||
# #107: conversione BMP->PNG e errore upload nel riquadro Disegno Tecnico
|
||||
assert "js/image_to_png.js" in html
|
||||
assert "tmfImageToPng(file)" in html
|
||||
assert "uploadErrorTask" in html
|
||||
|
||||
def test_recipe_editor_includes_crop(self, logged_in_client, mock_api_client):
|
||||
mock_api_client.get.side_effect = [
|
||||
@@ -322,3 +326,6 @@ class TestImageCropInclusion:
|
||||
html = logged_in_client.get("/maker/recipes/1/edit").get_data(as_text=True)
|
||||
assert "js/image-crop.js" in html
|
||||
assert "tmfCropBeforeUpload(file)" in html
|
||||
# #107: conversione BMP->PNG prima dei controlli di formato
|
||||
assert "js/image_to_png.js" in html
|
||||
assert "tmfImageToPng(file)" in html
|
||||
|
||||
Reference in New Issue
Block a user