angular-ui/bootstrap — pull request #2289 by demands (2014-06-02 22:52:03+00:00)
Title: Modal is incompatible with Protractor

Protractor uses Angular's [`$browser.notifyWhenNoOutstandingRequests`](https://github.com/angular/protractor/blob/f23565d5db4fbb102cfec8311ce9dfaee52e9113/lib/clientsidescripts.js#L28) to determine when it's okay to continue sending commands via webdriver.

Right now, when Protractor does an action that results in a modal being shown, `notifyWhenNoOutstandingRequests` gets called immediately, often before the modal is done displaying, resulting in flakey specs.

This commit contains a failing test simulating this behavior.