mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
test(popup): switched the order of the tests to test for subtitle being passed
references #342
This commit is contained in:
@ -8,24 +8,20 @@ it('should close alert', function() {
|
|||||||
element(by.css('.popup-buttons button:last-of-type')).click();
|
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() {
|
it('should open prompt', function() {
|
||||||
element(by.css('.e2eOpenPrompt')).click();
|
element(by.css('.e2eOpenPrompt')).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should close prompt', function() {
|
it('should close prompt', function() {
|
||||||
var inputEle = element(by.css('.popup-body input'));
|
var inputEle = element(by.css('.popup-body input'));
|
||||||
inputEle.sendKeys('prompt text');
|
inputEle.sendKeys('prompt text');
|
||||||
element(by.css('.popup-buttons button:last-of-type')).click();
|
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();
|
|
||||||
});
|
|
||||||
|
Reference in New Issue
Block a user