mhevery/angular.js — comment on commit 864c49bda015d7e64ccfeb8ef4d256a0c8cf3f0f
File: docs/content/guide/dev_guide.services.injecting_controllers.ngdoc line 40
By IgorMinar:

there is no way you can e2e test app with window.alert unless you use something that fully controls the browsers/os (in otherwords - its not compatible with the scenario runner)