fix(benchpress): explicitly require navigation to finish before continuing

This commit is contained in:
Julie Ralph 2015-04-16 09:43:22 -07:00
parent 923d90bce8
commit 8b28e99373

View File

@ -32,8 +32,8 @@ function runBenchmark(config) {
}); });
} }
var url = encodeURI(config.url + '?' + urlParams.join('&')); var url = encodeURI(config.url + '?' + urlParams.join('&'));
browser.get(url); return browser.get(url).then(function() {
return benchpressRunner.sample({ benchpressRunner.sample({
id: config.id, id: config.id,
execute: config.work, execute: config.work,
prepare: config.prepare, prepare: config.prepare,
@ -43,6 +43,7 @@ function runBenchmark(config) {
] ]
}); });
}); });
});
} }
function getScaleFactor(possibleScalings) { function getScaleFactor(possibleScalings) {