refactor(benchpress): made all it callbacks async (#35147)

PR Close #35147
This commit is contained in:
Wagner Maciel
2020-02-04 13:53:57 -08:00
committed by Kara Erickson
parent 26b17aee14
commit 5ca7c2d40f
19 changed files with 80 additions and 81 deletions

View File

@ -13,17 +13,17 @@ import {openBrowser, verifyNoBrowserErrors} from '../../../e2e_util/e2e_util';
describe('largetable benchmark', () => {
afterEach(verifyNoBrowserErrors);
it(`should render the table`, () => {
it(`should render the table`, async() => {
openBrowser({
url: '',
ignoreBrowserSynchronization: true,
params: [{name: 'cols', value: 5}, {name: 'rows', value: 5}],
});
$('#createDom').click();
await $('#createDom').click();
expect($('#root').getText()).toContain('0/0');
$('#createDom').click();
await $('#createDom').click();
expect($('#root').getText()).toContain('A/A');
$('#destroyDom').click();
await $('#destroyDom').click();
expect($('#root').getText() as any).toEqual('');
});
});

View File

@ -48,13 +48,13 @@ describe('largetable benchmark perf', () => {
[CreateOnlyWorker, CreateAndDestroyWorker, UpdateWorker].forEach((worker) => {
describe(worker.id, () => {
it(`should run benchmark for ${testPackageName}`, done => {
it(`should run benchmark for ${testPackageName}`, async() => {
runTableBenchmark({
id: `largeTable.${testPackageName}.${worker.id}`,
url: '/',
ignoreBrowserSynchronization: true,
worker: worker
}).then(done, done.fail);
});
});
});
});