Ghost/ghost/email-service/test
Rishabh Garg a09e86da05
Fixed email preview text with new stability flow (#15996)
closes https://github.com/TryGhost/Team/issues/2382

The preview text is getting set to subject line in the new email flow so it repeats multiple times in the inbox(subject+preview+title). This was because the new flow doesn't use the post serialisation that the old system did, causing excerpt to be empty in the email rendering.

Old system was using post serialisation here -
a721e4f2d7/ghost/core/core/server/services/mega/post-email-serializer.js (L136-L139).

This change adds explicit method to calculate the preview text for email in email renderer service using same logic as used in old system.

Co-authored-by: Simon Backx <git@simonbackx.com>
2022-12-14 15:54:26 +05:30
..
utils Added email service package (#15849) 2022-11-21 10:29:53 +01:00
.eslintrc.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
email-event-storage.test.js 🐛 Fixed setting delivered_at to null after hard bounce (#15942) 2022-12-06 10:26:54 +05:30
email-renderer.test.js Fixed email preview text with new stability flow (#15996) 2022-12-14 15:54:26 +05:30
email-segmenter.test.js Updated unit test coverage for email service (#15913) 2022-12-02 00:33:28 +05:30
mailgun-email-provider.test.js Added mailgun provider for sending emails (#15896) 2022-11-30 16:21:58 +05:30
sending-service.test.js Updated unit test coverage for email service (#15913) 2022-12-02 00:33:28 +05:30