protractor: speed up by removing some sleeps

This commit is contained in:
Andrew
2015-03-30 14:26:48 -06:00
parent ace419d505
commit 7b80c32999

View File

@ -71,11 +71,9 @@ var IonicSnapshot = function(options) {
self.flow.execute(function(){
var d = protractor.promise.defer();
browser.waitForAngular().then(function(){
browser.getCurrentUrl().then(function(currentUrl) {
browser.sleep(self.sleepBetweenSpecs).then(function(){
// browser.sleep(self.sleepBetweenSpecs).then(function(){
browser.takeScreenshot().then(function(pngBase64){
var specIdString = '[' + (spec.id+1) + '/' + self.testData.total_specs + ']';
@ -107,9 +105,8 @@ var IonicSnapshot = function(options) {
);
d.fulfill();
});
});
});
//});
});