Fixed frontend tests. (#6210)

* Fixed frontend tests.

* Use old socket io syntax.

* uSE ESM:

* Remove padvar.

* Remove cypress.
This commit is contained in:
SamTV12345 2024-03-08 18:50:29 +01:00 committed by GitHub
parent 2fa2d5bd17
commit d34b964cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 23 deletions

View file

@ -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;