feat: collab component state handling rewrite & fixes (#5046)
This commit is contained in:
src
@ -50,6 +50,7 @@ jest.mock("socket.io-client", () => {
|
||||
return {
|
||||
close: () => {},
|
||||
on: () => {},
|
||||
once: () => {},
|
||||
off: () => {},
|
||||
emit: () => {},
|
||||
};
|
||||
@ -77,7 +78,7 @@ describe("collaboration", () => {
|
||||
]);
|
||||
expect(API.getStateHistory().length).toBe(1);
|
||||
});
|
||||
window.collab.openPortal();
|
||||
window.collab.startCollaboration(null);
|
||||
await waitFor(() => {
|
||||
expect(h.elements).toEqual([expect.objectContaining({ id: "A" })]);
|
||||
expect(API.getStateHistory().length).toBe(1);
|
||||
|
Reference in New Issue
Block a user