mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
Fixed frontend tests. (#6210)
* Fixed frontend tests. * Use old socket io syntax. * uSE ESM: * Remove padvar. * Remove cypress.
This commit is contained in:
parent
2fa2d5bd17
commit
d34b964cc2
5 changed files with 18 additions and 23 deletions
|
@ -36,8 +36,8 @@ describe('Messages in the COLLABROOM', function () {
|
|||
// User 1 starts sending a change to the server.
|
||||
let sendStarted;
|
||||
const finishSend = (() => {
|
||||
const socketJsonObj = helper.padChrome$.window.pad.socket.json;
|
||||
const sendBackup = socketJsonObj.send;
|
||||
const socketJsonObj = helper.padChrome$.window.pad.socket;
|
||||
const sendBackup = socketJsonObj.emit;
|
||||
let startSend;
|
||||
sendStarted = new Promise((resolve) => { startSend = resolve; });
|
||||
let finishSend;
|
||||
|
@ -46,7 +46,7 @@ describe('Messages in the COLLABROOM', function () {
|
|||
startSend();
|
||||
sendP.then(() => {
|
||||
socketJsonObj.send = sendBackup;
|
||||
socketJsonObj.send(...args);
|
||||
socketJsonObj.send('message', ...args);
|
||||
});
|
||||
};
|
||||
return finishSend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue