test(popup): switched the order of the tests to test for subtitle being passed

references #342
This commit is contained in:
Brandy Carney
2015-10-29 13:02:21 -04:00
parent 7bd2ebe027
commit 744920949e

View File

@ -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();
});