diff --git a/ionic/components/alert/test/basic/e2e.ts b/ionic/components/alert/test/basic/e2e.ts new file mode 100644 index 0000000000..b102a9e214 --- /dev/null +++ b/ionic/components/alert/test/basic/e2e.ts @@ -0,0 +1,76 @@ + +it('should open basic alert', function() { + element(by.css('.e2eOpenAlert')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open alert long message', function() { + element(by.css('.e2eOpenAlertLongMessage')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open alert multiple buttons', function() { + element(by.css('.e2eOpenMultipleButtons')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open alert no message', function() { + element(by.css('.e2eOpenAlertNoMessage')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open confirm alert', function() { + element(by.css('.e2eOpenConfirm')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open prompt alert', function() { + element(by.css('.e2eOpenPrompt')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open radio alert', function() { + element(by.css('.e2eOpenRadio')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open checkbox alert', function() { + element(by.css('.e2eOpenCheckbox')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +}); + +it('should open and close fast close alert', function() { + element(by.css('.e2eFastClose')).click(); +}); + +it('should open disabled backdrop alert', function() { + element(by.css('.e2eDisabledBackdrop')).click(); +}); + +it('should close with button click', function() { + element(by.css('.alert-button:last-child')).click(); +});