mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Create performance.js
This commit is contained in:
parent
5c9514f926
commit
d3c56630f2
1 changed files with 12 additions and 0 deletions
12
src/tests/frontend/specs/performance.js
Normal file
12
src/tests/frontend/specs/performance.js
Normal 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);
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue