discourse/spec/components/email
Martin Brennan 27e94f2f98
FIX: Make secure image onebox check more robust (#11179)
When embedding secure images which have been oneboxed, we checked to see if the image's parent's parent had the class onebox-body. This was not always effective as if the image does not get resized/optimized then it does not have the aspect-image div wrapping it. This would cause the image to embed in the email but be huge.

This PR changes the check to see if any of the image's ancestors have the class onebox-body, or if the image has the onebox-avatar class to account for variations in HTML structure.
2020-11-10 12:55:18 +10:00
..
authentication_results_spec.rb enqueue spam/dmarc failing emails instead of hiding (#8674) 2020-01-21 11:12:00 -05:00
cleaner_spec.rb FEATURE: Remove attachments and truncate raw field for incoming emails (#8253) 2019-10-30 16:54:35 +11:00
email_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
message_builder_spec.rb FIX: Make all email subject vars available in notification subjects (#11064) 2020-11-02 20:00:11 -08:00
processor_spec.rb Update rubocop to 2.3.1. 2020-07-24 17:19:21 +08:00
receiver_spec.rb FIX: Stripping lines from incoming email shouldn't fail for blank body (#10800) 2020-10-02 15:44:35 +02:00
renderer_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00
sender_spec.rb FIX: Ensure oneboxed secure images which are optimized and also lightboxed optimized images are embedded in email (#11061) 2020-11-02 09:52:21 +10:00
styles_spec.rb FIX: Make secure image onebox check more robust (#11179) 2020-11-10 12:55:18 +10:00