File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,20 @@ public function test_image_display_thumbnail_generation_for_apng_images_uses_ori
6868 $ this ->files ->deleteAtRelativePath ($ imgDetails ['path ' ]);
6969
7070 $ this ->assertStringContainsString ('thumbs- ' , $ imgDetails ['response ' ]->thumbs ->gallery );
71- $ this ->assertStringNotContainsString ('thumbs- ' , $ imgDetails ['response ' ]->thumbs ->display );
71+ $ this ->assertStringNotContainsString ('scaled- ' , $ imgDetails ['response ' ]->thumbs ->display );
72+ }
73+
74+ public function test_image_display_thumbnail_generation_for_animated_avif_images_uses_original_file ()
75+ {
76+ $ page = $ this ->entities ->page ();
77+ $ admin = $ this ->users ->admin ();
78+ $ this ->actingAs ($ admin );
79+
80+ $ imgDetails = $ this ->files ->uploadGalleryImageToPage ($ this , $ page , 'animated.avif ' );
81+ $ this ->files ->deleteAtRelativePath ($ imgDetails ['path ' ]);
82+
83+ $ this ->assertStringContainsString ('thumbs- ' , $ imgDetails ['response ' ]->thumbs ->gallery );
84+ $ this ->assertStringNotContainsString ('scaled- ' , $ imgDetails ['response ' ]->thumbs ->display );
7285 }
7386
7487 public function test_image_edit ()
You can’t perform that action at this time.
0 commit comments