Ghost/ghost/core/test/e2e-api/admin
Naz 53fd78cc86
Added email snapshot tests to newsletter suites
https://github.com/TryGhost/Team/issues/2691

- This change is meant to serve as an example for testing outbound emails. It uses emailMockReceiver and it's html/test/metadata snapshotting features.
- The wider goal is to move away from using "mockManager.assert.sentEmail" that only tested some of the outgoing email contents to more wide range testing through "emailMockReceiver"
- For more on best practices using emailMockReceiver check out codex section on "email testing" - https://ghost.notion.site/End-to-end-Testing-6a2ef073b1754b18aff42e24a632a007#cf33c7f0-fba6-4951-bf50-09080374719c
2023-04-07 14:34:57 +02:00
..
__snapshots__ Added email snapshot tests to newsletter suites 2023-04-07 14:34:57 +02:00
actions.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
activity-feed.test.js Added Stripe Mocker to make testing easier (#16396) 2023-03-10 18:43:35 +01:00
config.test.js 💡 Upgraded Tenor API to v2 (#15087) 2022-08-05 12:13:27 +01:00
custom-theme-settings.test.js Prevent simple error logs by stubbing log library 2023-03-03 18:25:53 +00:00
db.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
email-previews.test.js Added E2E test for sending email without post title 2023-03-14 16:05:18 +01:00
emails.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
explore.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
files.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
images.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
integrations.test.js Fixed self-serve api key type 2023-03-28 11:59:17 +02:00
invites.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
key-authentication.test.js Prevent simple error logs by stubbing log library 2023-03-03 18:25:53 +00:00
labels.test.js Prevent simple error logs by stubbing log library 2023-03-03 18:25:53 +00:00
links.test.js 🐛 Fixed post links being marked as edited when they were not (#16153) 2023-01-20 13:31:54 +01:00
media.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-exporter.test.js Added Stripe Mocker to make testing easier (#16396) 2023-03-10 18:43:35 +01:00
members-importer.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-newsletters.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-stripe-connect.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
members.test.js 🐛 Fixed member signup emails being sent with escaped subject line (#16544) 2023-04-04 10:12:28 -07:00
mentions.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
newsletters.test.js Added email snapshot tests to newsletter suites 2023-04-07 14:34:57 +02:00
notifications.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
oembed.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
offers.test.js Prevents errors from being logged during the offers tests 2023-03-03 18:25:53 +00:00
pages.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
posts-legacy.test.js Added retries for all known flaky tests (#16582) 2023-04-07 00:37:01 -07:00
posts.test.js Added id column to post analytics export 2023-04-03 14:50:43 +02:00
rate-limiting.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
redirects.test.js Improved performance of prepareContentFolder function 2022-08-01 08:58:13 +02:00
roles.test.js Added migrations for Self-Serve Migration Integration and API key 2023-03-24 11:28:29 +01:00
session.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
settings-files.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
settings.test.js Added Portal signup terms settings and migration (#16545) 2023-04-04 10:04:12 +02:00
site.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
slugs.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
snippets.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
stats.test.js Mocked mail to prevent errors in e2e test suite 2023-03-22 16:25:23 +00:00
tags.test.js Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
themes.test.js Added visible theme errors in admin (#16081) 2023-01-06 13:44:27 +01:00
tiers.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
users.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
utils.js Reduced default post relations (#15798) 2022-11-15 10:17:26 +01:00
webhooks.test.js Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00