mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
why is video so slow?
This commit is contained in:
parent
cbf2a5898c
commit
622a2be177
2 changed files with 6 additions and 17 deletions
4
.github/workflows/collaboration.yml
vendored
4
.github/workflows/collaboration.yml
vendored
|
@ -52,8 +52,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
node src\node\server.js &
|
node src\node\server.js &
|
||||||
cd src\tests\frontend
|
cd src\tests\frontend
|
||||||
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser1 &
|
# cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser1 &
|
||||||
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser2 &
|
# cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser2 &
|
||||||
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser3 &
|
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser3 &
|
||||||
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser4
|
cypress run --spec cypress\integration\collaborate.js --config-file cypress\cypress.json --config videosFolder=cypress/videos/browser4
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// We need to get up to 700 lines so the additional space breaks and enter keys
|
// We need to get up to 700 lines so the additional space breaks and enter keys
|
||||||
// in specialKeys are intentional.
|
// in specialKeys are intentional.
|
||||||
|
|
||||||
const numberOfEdits = 100;
|
const numberOfEdits = 10; // should be 1750
|
||||||
const specialKeys = ['{{}',
|
const specialKeys = ['{{}',
|
||||||
'{backspace}',
|
'{backspace}',
|
||||||
'{del}',
|
'{del}',
|
||||||
|
@ -72,8 +72,9 @@ describe(__filename, () => {
|
||||||
cy.get('iframe[name="ace_outer"]').iframe()
|
cy.get('iframe[name="ace_outer"]').iframe()
|
||||||
.find('iframe[name="ace_inner"]').iframe()
|
.find('iframe[name="ace_inner"]').iframe()
|
||||||
.find('.ace-line:last')
|
.find('.ace-line:last')
|
||||||
.type(randomString(16));
|
.type(Math.random().toString(36).slice(2));
|
||||||
|
// shameless copy/pasted from
|
||||||
|
// https://stackoverflow.com/questions/10726909/random-alpha-numeric-string-in-javascript
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,15 +92,3 @@ describe(__filename, () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const randomString = (stringLength) => {
|
|
||||||
let randomstring = '';
|
|
||||||
for (let i = 0; i < stringLength; i++) {
|
|
||||||
const charNumber = Math.random() * (300 - 1) + 1;
|
|
||||||
const str = String.fromCharCode(parseInt(charNumber));
|
|
||||||
// This method generates sufficient noise
|
|
||||||
// It also includes white space and non ASCII Chars
|
|
||||||
randomstring += str;
|
|
||||||
}
|
|
||||||
return randomstring;
|
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue