Playing around with AngularJS and modal dialogs and e2e tests