refactor(perf): move navigation into test files and rename runSimpleBenchmark

This commit is contained in:
Tobias Bosch
2014-12-29 16:15:41 -08:00
parent 35ac3f3d97
commit 3a80c4197d
8 changed files with 31 additions and 36 deletions

View File

@ -3,16 +3,12 @@ var webdriver = require('protractor/node_modules/selenium-webdriver');
module.exports = {
perfLogs: perfLogs,
sumTimelineRecords: sumTimelineRecords,
runSimpleBenchmark: runSimpleBenchmark,
runClickBenchmark: runClickBenchmark,
verifyNoErrors: verifyNoErrors,
printObjectAsMarkdown: printObjectAsMarkdown
};
// TODO: rename into runSimpleBenchmark
function runSimpleBenchmark(config) {
// TODO: move this into the tests!
browser.get(config.url);
function runClickBenchmark(config) {
var buttons = config.buttons.map(function(selector) {
return $(selector);
});