mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +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(){
|
self.flow.execute(function(){
|
||||||
var d = protractor.promise.defer();
|
var d = protractor.promise.defer();
|
||||||
|
|
||||||
browser.waitForAngular().then(function(){
|
|
||||||
|
|
||||||
browser.getCurrentUrl().then(function(currentUrl) {
|
browser.getCurrentUrl().then(function(currentUrl) {
|
||||||
|
|
||||||
browser.sleep(self.sleepBetweenSpecs).then(function(){
|
// browser.sleep(self.sleepBetweenSpecs).then(function(){
|
||||||
|
|
||||||
browser.takeScreenshot().then(function(pngBase64){
|
browser.takeScreenshot().then(function(pngBase64){
|
||||||
var specIdString = '[' + (spec.id+1) + '/' + self.testData.total_specs + ']';
|
var specIdString = '[' + (spec.id+1) + '/' + self.testData.total_specs + ']';
|
||||||
@ -107,9 +105,8 @@ var IonicSnapshot = function(options) {
|
|||||||
);
|
);
|
||||||
d.fulfill();
|
d.fulfill();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
});
|
//});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user