Ghost/test/utils
Naz 0f4aeaaa80 Added basic framework for webhook e2e tests
refs https://github.com/TryGhost/Toolbox/issues/320

- This is an **MVP** to be able to intercept and match webhook request
snapshots. The concept is similar to the one used in API E2E tests using
same "matchBodySnapshot" and other "match*" methods to test the webhook
**request** data
- Next up here would be:
1. Header matcher
2. Mocking more than one webhook (and doing something nicer with the way
the fixture data is inserted, does this logic belong to the mock-receiver?
2022-06-03 11:57:39 +08:00
..
fixtures Removed subscriber-related webhook fixtures 2022-05-26 14:45:36 +08:00
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
admin-api-test-agent.js Refactored Admin API test agent to use async/await 2022-06-01 17:48:08 +08:00
admin-utils.js Renamed "client" references to "admin" 2022-05-17 09:05:44 +01:00
api.js Fixed handing test suite 2021-12-09 13:52:02 +04:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
content-api-test-agent.js Added ContentAPITestAgent 2022-02-23 17:08:56 +07:00
db-utils.js Cleaned newsletter e2e tests, improved framework 2022-05-06 12:15:12 +01:00
e2e-framework-mock-manager.js Added basic framework for webhook e2e tests 2022-06-03 11:57:39 +08:00
e2e-framework.js Added root Ghost server/API test agent 2022-05-20 13:17:00 +08:00
e2e-utils.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
fixture-utils.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
ghost-api-test-agent.js Added root Ghost server/API test agent 2022-05-20 13:17:00 +08:00
index.js Removed support for single "author" shorthand in fixtures 2022-05-09 20:43:19 +08:00
members-api-test-agent.js Extracted TestAgent class for test utils 2022-02-21 11:19:07 +07:00
overrides.js Revert "Added global setup to reset DB before test run" 2022-03-16 21:10:49 +00:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
test-agent.js Removed @tryghost/jest-snapshot dependency 2022-02-22 09:41:58 +07:00
url-service-utils.js Removed unused parameter from isFinished method 2021-11-24 05:32:20 +13:00
urlUtils.js Update dependency @tryghost/url-utils to v3 (#14705) 2022-05-05 16:10:18 +01:00
webhook-mock-receiver.js Added basic framework for webhook e2e tests 2022-06-03 11:57:39 +08:00