fix(build): Use Angular's testability API to wait for end of e2e tests
Closes #3911
This commit is contained in:
@@ -15,7 +15,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -28,7 +29,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -41,7 +43,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -54,7 +57,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -67,7 +71,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -80,7 +85,8 @@ describe('ng2 change detection benchmark', function() {
|
||||
{name: 'numberOfChecks', value: 900000},
|
||||
{name: 'iterations', value: 20, scale: 'linear'}
|
||||
],
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'}
|
||||
microMetrics: {'detectChangesAvg': 'avg time to detect changes (ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#getByToken'],
|
||||
id: 'ng2.di.getByToken',
|
||||
params: [{name: 'iterations', value: 20000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for injection (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for injection (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -22,7 +23,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#getByKey'],
|
||||
id: 'ng2.di.getByKey',
|
||||
params: [{name: 'iterations', value: 20000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for injection (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for injection (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -32,7 +34,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#getChild'],
|
||||
id: 'ng2.di.getChild',
|
||||
params: [{name: 'iterations', value: 20000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for getChild (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for getChild (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -42,7 +45,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#instantiate'],
|
||||
id: 'ng2.di.instantiate',
|
||||
params: [{name: 'iterations', value: 10000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for instantiate (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for instantiate (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -56,7 +60,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#createVariety'],
|
||||
id: 'ng2.di.createVariety',
|
||||
params: [{name: 'iterations', value: 10000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for createVariety (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for createVariety (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -69,7 +74,8 @@ describe('ng2 di benchmark', function() {
|
||||
buttons: ['#createVarietyResolved'],
|
||||
id: 'ng2.di.createVarietyResolved',
|
||||
params: [{name: 'iterations', value: 10000, scale: 'linear'}],
|
||||
microMetrics: {'injectAvg': 'avg time for createVarietyResolved (in ms)'}
|
||||
microMetrics: {'injectAvg': 'avg time for createVarietyResolved (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ describe('ng2 element injector benchmark', function() {
|
||||
buttons: ['#instantiate'],
|
||||
id: 'ng2.elementInjector.instantiate',
|
||||
params: [{name: 'iterations', value: 20000, scale: 'linear'}],
|
||||
microMetrics: {'instantiateAvg': 'avg time for injection (in ms)'}
|
||||
microMetrics: {'instantiateAvg': 'avg time for injection (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -22,7 +23,8 @@ describe('ng2 element injector benchmark', function() {
|
||||
buttons: ['#hydrate'],
|
||||
id: 'ng2.elementInjector.hydrate',
|
||||
params: [{name: 'iterations', value: 20000, scale: 'linear'}],
|
||||
microMetrics: {'instantiateAvg': 'avg time for injection (in ms)'}
|
||||
microMetrics: {'instantiateAvg': 'avg time for injection (in ms)'},
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@ describe('ng2 selector benchmark', function() {
|
||||
url: URL,
|
||||
buttons: ['#parse'],
|
||||
id: 'ng2.selector.parse',
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}]
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}],
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -20,7 +21,8 @@ describe('ng2 selector benchmark', function() {
|
||||
url: URL,
|
||||
buttons: ['#addSelectable'],
|
||||
id: 'ng2.selector.addSelectable',
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}]
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}],
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
@@ -29,7 +31,8 @@ describe('ng2 selector benchmark', function() {
|
||||
url: URL,
|
||||
buttons: ['#match'],
|
||||
id: 'ng2.selector.match',
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}]
|
||||
params: [{name: 'selectors', value: 10000, scale: 'linear'}],
|
||||
waitForAngular2: false
|
||||
}).then(done, done.fail);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user