Create performance.js

test-number-of-files
John McLear 2021-03-17 18:38:43 +00:00
parent 5c9514f926
commit d3c56630f2
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
'use strict';
describe('performance', function () {
beforeEach(function (cb) {
helper.newPad(cb);
});
// Etherpad core should never provide more than 30 files.
it('correct number of files are provided to browser from Etherpad', async function () {
await helper.waitForPromise(() => performance.getEntriesByType('resource').length <= 30);
});
});