UNPKG

ionic-angular

Version:

[![Circle CI](https://circleci.com/gh/driftyco/ionic.svg?style=svg)](https://circleci.com/gh/driftyco/ionic)

37 lines (30 loc) 934 B
--- name: popping component: $ionicPopup --- it('should open confirm popup', function(){ var ele = element.all(by.css('[ng-click="showConfirm()"]')); ele.get(0).click(); }); it('should cancel confirm popup', function(){ var ele = element.all(by.css('.popup-buttons .button')); ele.get(0).click(); }); it('should open prompt popup and enter input', function(){ var ele = element.all(by.css('[ng-click="showPrompt()"]')); ele.get(0).click(); ele = element(by.model('data.response')); ele.sendKeys('Waffles'); }); it('should close prompt popup by clicking OK', function(){ var ele = element.all(by.css('.popup-buttons .button')); ele.get(1).click(); }); it('should open alert popup', function(){ var ele = element.all(by.css('[ng-click="showAlert()"]')); ele.get(0).click(); }); it('should close alert popup', function(){ var ele = element.all(by.css('.popup-buttons .button')); ele.get(0).click(); });