Selenium is a great tool for testing complex workflows because it allows you to automate the browser to walk through the possibilities and verify that what you intend is what happens. However, Selenium works by sending Javascript to the browser. A browser modal dialog blocks Selenium from communicating with the browser and therefore prevents automation. When you delete a workflow, it uses a browser modal dialog for confirmation. As a result, workflow deletion cannot be automated. Replacing the browser modal with a JS modal would allow for automation and also provide a better user experience (a dialog within the look-and-feel of the application or module, rather than with the browser's look-and-feel).