Salesforce introduces beta Test Mode for Flow debugging and regression testing
Traditional Approach
- Debug button only for troubleshooting
- Testing and debugging require separate actions
- Manual checks lack reusable configurations
- Cluttered design canvas during validation
Test Mode Workspace
- Dedicated view replaces Debug button
- Merges debugging and automated testing
- Saves runs as reusable manual test scenarios
- Converts manual tests to regression tests with assertions
Salesforce has released a beta version of Test Mode, a dedicated workspace that replaces the traditional Debug button in Flow Builder. This update merges debugging and automated testing into a single interface, requiring administrators to enable the feature through Process Automation Settings before it becomes available for Record-triggered and autolaunched flows.
The new workspace allows builders to save execution runs as reusable manual test scenarios. These saved configurations preserve triggering records, input variables, and mocked outputs. Administrators can now supply static record identifiers for poorly searchable objects and populate primitive collections directly in the test panel. Once validated, these manual scenarios can be transformed into permanent regression tests by attaching expected results.
Test Mode also introduces element mocking, which simulates outputs for subflows and external actions to keep testing isolated from live endpoints. The roadmap includes Winter ’27 enhancements such as visual test coverage tracking on the canvas and Agentforce powered capabilities. These future features will synthesize transaction context to diagnose cross automation failures and automatically generate comprehensive test scenarios with isolated data silos.