With the new Has Error operator, you can configure negative assertions in a flow test. Intentionally test flow paths where things don’t go according to plan, ensuring that your flows handle errors gracefully. Previously, you configured only positive assertions that tested for successful outcomes, which left gaps in your testing. The Has Error operator is available in flow tests for record-triggered and data cloud-triggered flows. Select the Has Error operator to configure negative assertions for Create Records, Update Records, Delete Records, and Action elements
Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Pro Suite, Professional, Enterprise, Performance, Unlimited, Developer, and all Einstein 1 editions
Why: With negative assertions, your flows can now check for errors and edge cases effectively. For example, consider a flow that processes customer data. You can create a test to make sure the flow handles invalid input, such as a missing required field. This test verifies the flow’s error handling, making your processes more robust
How: In Flow Builder, create a data cloud-triggered flow or record-triggered flow. Add the Create Records, Update Records, Delete Records, or Action element. Save the flow. Create a flow test and click Set Assertions. For Operator, click Has Error


