diff --git a/content/send-notifications/testing-workflows.mdx b/content/send-notifications/testing-workflows.mdx index aa348b088..19f6cbf7e 100644 --- a/content/send-notifications/testing-workflows.mdx +++ b/content/send-notifications/testing-workflows.mdx @@ -24,6 +24,15 @@ Note that [trigger frequency](/send-notifications/triggering-workflows/overview# You can also use the workflow test runner to run a test payload for a [source event trigger](/integrations/sources/overview#workflow-triggers). If your workflow is triggered by an event, you will automatically see a JSON payload of the last received event that you can use to run a test. You can edit this payload or click "Fetch the latest event" to get the most recent from your source. +### Test run settings + +The test runner includes a few settings that control how the workflow executes during a test run: + +- **Sandbox mode.** When enabled, all messages sent from the workflow are forced to send in [sandbox mode](/integrations/overview#sandbox-mode). Knock generates and previews the messages without delivering them to the underlying providers, regardless of how sandbox mode is configured on each channel. This is useful for testing a workflow end-to-end without sending real notifications to your recipients. +- **Skip delays.** When enabled, all [delay steps](/designing-workflows/delay-function) in the workflow are force skipped. The workflow runs straight through without waiting, which lets you verify the full execution path without waiting for delays to elapse. + +You can also apply both of these settings when triggering a workflow via the API using the `settings.sandbox_mode` and `settings.skip_delay` properties, which is useful when testing workflows programmatically. +