♻️(frontend) replace y-webrtc by @hocuspocus

y-webrtc had some issues, users had difficulties
to connect with each others.
We replace it by @hocuspocus/provider.
This commit is contained in:
Anthony LC
2024-09-04 15:26:45 +02:00
committed by Anthony LC
parent 9e1979f637
commit 1139c0abea
9 changed files with 25 additions and 29 deletions

View File

@@ -9,7 +9,7 @@ test.beforeEach(async ({ page }) => {
});
test.describe('Doc Editor', () => {
test('checks the Doc is connected to the webrtc server', async ({
test('checks the Doc is connected to the provider server', async ({
page,
browserName,
}) => {
@@ -29,12 +29,7 @@ test.describe('Doc Editor', () => {
await page.locator('.ProseMirror.bn-editor').fill('Hello World');
const framesent = await framesentPromise;
const payload = JSON.parse(framesent.payload as string) as {
type: string;
};
const typeCases = ['publish', 'subscribe', 'unsubscribe', 'ping'];
expect(typeCases.includes(payload.type)).toBeTruthy();
expect(framesent.payload).not.toBeNull();
});
test('markdown button converts from markdown to the editor syntax json', async ({