From 5e457ba4b2e4dcfa00bc1061afabac3c1c0808ea Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Tue, 7 Nov 2023 20:35:58 +0100 Subject: [PATCH] Test(web-twig): Add tests for imageObjectFit property --- .../__tests__/__fixtures__/fileUploaderAttachment.twig | 1 + .../__snapshots__/fileUploaderAttachment.twig.snap.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderAttachment.twig b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderAttachment.twig index b07340d57b..514da851f5 100644 --- a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderAttachment.twig +++ b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__fixtures__/fileUploaderAttachment.twig @@ -21,4 +21,5 @@ imagePreview="https://picsum.photos/id/823/162/162" onEdit="alert('Edit')" removeText="Delete" + imageObjectFit="contain" /> diff --git a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__snapshots__/fileUploaderAttachment.twig.snap.html b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__snapshots__/fileUploaderAttachment.twig.snap.html index eaab51a92c..5c8ad8aa99 100644 --- a/packages/web-twig/src/Resources/components/FileUploader/__tests__/__snapshots__/fileUploaderAttachment.twig.snap.html +++ b/packages/web-twig/src/Resources/components/FileUploader/__tests__/__snapshots__/fileUploaderAttachment.twig.snap.html @@ -15,7 +15,7 @@
  • -
  • @@ -52,7 +52,7 @@
  • - file.pdf file.pdf