Ghost/ghost/core/test/utils
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
..
agents Sped up comments and feedback tests by reusing Ghost app instance 2022-11-18 14:58:35 +01:00
fixtures Added Portal signup terms settings and migration (#16545) 2023-04-04 10:04:12 +02:00
mocks Fixed Playwright tests for new email flow 2023-01-20 19:00:13 +01:00
admin-utils.js 🐛 Fixed missing published Admin assets when running in development 2022-08-04 10:55:35 +02:00
api.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
assertions.js Removed custom assertions 2023-03-10 14:29:55 +01:00
configUtils.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
db-utils.js Fixed warning about aborted connection in tests 2022-08-31 12:15:30 +01:00
e2e-framework-mock-manager.js Bumped email-mock-receiver 2023-04-06 22:13:17 +02:00
e2e-framework.js Added email snapshot tests to newsletter suites 2023-04-07 14:34:57 +02:00
e2e-utils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
fixture-utils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.js Added awaiting jobs and events by default to all tests (#16505) 2023-04-06 09:05:16 +02:00
redirects.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
stripe-mocker.js Added awaiting jobs and events by default to all tests (#16505) 2023-04-06 09:05:16 +02:00
url-service-utils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
urlUtils.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00