diff --git a/src/tests/frontend/specs/performance.js b/src/tests/frontend/specs/performance.js new file mode 100644 index 000000000..1c51605f3 --- /dev/null +++ b/src/tests/frontend/specs/performance.js @@ -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); + }); +});