mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
protractor: speed up by removing some sleeps
This commit is contained in:
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
//});
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user