feat(test): add e2e tests for benchmarks and examples

Disables running the actual benchmarks on every commit as well
to speed up the build.
This commit is contained in:
Tobias Bosch
2015-01-08 10:02:23 -08:00
parent 8c6527251b
commit 14e91e209e
14 changed files with 232 additions and 4 deletions

View File

@ -0,0 +1,21 @@
"use strict";
var benchpress = require('../../../tools/benchpress/index.js');
describe('ng2 compiler benchmark', function () {
var URL = 'benchmarks/web/compiler/compiler_benchmark.html';
afterEach(benchpress.verifyNoBrowserErrors);
it('should not throw errors', function() {
browser.get(URL);
clickAll(['#compileWithBindings', '#compileNoBindings']);
});
});
function clickAll(buttonSelectors) {
buttonSelectors.forEach(function(selector) {
$(selector).click();
});
}