mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
28 lines
683 B
TypeScript
28 lines
683 B
TypeScript
|
|
it('should open alert', function() {
|
|
element(by.css('.e2eOpenAlert')).click();
|
|
});
|
|
|
|
|
|
it('should close alert', function() {
|
|
element(by.css('.popup-buttons button:last-of-type')).click();
|
|
});
|
|
|
|
it('should open confirm', function() {
|
|
element(by.css('.e2eOpenConfirm')).click();
|
|
});
|
|
|
|
it('should close confirm', function() {
|
|
element(by.css('.popup-buttons button:last-of-type')).click();
|
|
});
|
|
|
|
it('should open prompt', function() {
|
|
element(by.css('.e2eOpenPrompt')).click();
|
|
});
|
|
|
|
it('should close prompt', function() {
|
|
var inputEle = element(by.css('.popup-body input'));
|
|
inputEle.sendKeys('prompt text');
|
|
element(by.css('.popup-buttons button:last-of-type')).click();
|
|
});
|