Ghost/ghost/core/test/regression/api/admin
Naz 1f6b2b4d5e
Added email content testing capabilities
refs https://github.com/TryGhost/Toolbox/issues/499

- Outgoing emails have been a weak point of Ghost's stability recently. The concept of "emailMockReceiver" similarly to "webhookMockReceiver", allows to test side-effects like outgoing emails.
- This is a first iteration which should lay groundwork for testing all outgoing emails in the future
- The change adds a new concept of "email mock receiver" which is very similar to how the "webhook mock receiver" works. The email mock receiver exposes two methods to record and verify snapshots:
- matchHTMLSnapshot - records and verifies only the HTML content of the outgoint email
- matchMetadataSnapshot - records and verifies all the non-HTML properties sent along an email content, e.g.: to address, plaintext, subject, etc.
- What's missing is matching content based on dynamic content like dates, links with JWT tokens, etc.
2023-01-17 12:50:49 +08:00
..
__snapshots__ Added email content testing capabilities 2023-01-17 12:50:49 +08:00
authentication.test.js Added email content testing capabilities 2023-01-17 12:50:49 +08:00
db.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
identities.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
members-importer.test.js Added DomainEvents.allSettled utility method (#16075) 2023-01-04 14:30:35 +01:00
members-signin-url.test.js Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
notifications.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
pages.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
posts.test.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
redirects.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
schedules.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings.test.js 🐛 Fixed settings overriden when updated from multiple tabs (#15536) 2022-10-12 14:03:54 +01:00
slack.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
update-user-last-seen.test.js Renamed users:no-owner to users as main user fixture 2022-09-02 10:08:37 +01:00
users.test.js Fixed import of bson-objectid in accordance to the typings 2022-10-12 14:54:35 +07:00
utils.js Reduced default post relations (#15798) 2022-11-15 10:17:26 +01:00
webhooks.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00