Skip to content

Add spec to ensure mailers don't include SVG#10949

Merged
aduth merged 1 commit intomainfrom
aduth-mailer-svg-spec
Jul 17, 2024
Merged

Add spec to ensure mailers don't include SVG#10949
aduth merged 1 commit intomainfrom
aduth-mailer-svg-spec

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jul 16, 2024

🛠 Summary of changes

Adds a test to verify that mailer content doesn't include SVG images. As described in the included inline code comment (and related folder README), SVG images are not well supported in mail clients. This is often hard to spot in development, since our HTML previews render correctly in a browser, but the mailer may not always show the expected content when sent in a deployed environment. The intent of the test is to reduce the feedback loop for this issue, and ensure that the issue is caught sooner.

Previously:

📜 Testing Plan

Verify that tests pass:

rspec spec/mailers/previews/user_mailer_preview_spec.rb

For bonus points, modify a file in app/views/user_mailer to include an SVG image and verify that the same tests fail.

changelog: Internal, Automated Testing, Add spec to ensure mailers don't include SVG
@aduth aduth requested a review from gina-yamada July 16, 2024 20:44
@aduth aduth merged commit f6cc994 into main Jul 17, 2024
@aduth aduth deleted the aduth-mailer-svg-spec branch July 17, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants