diff --git a/packages/backend/server/tests/app/selfhost.e2e.ts b/packages/backend/server/tests/app/selfhost.e2e.ts index d51f839fc9d03..65c70af83a4b2 100644 --- a/packages/backend/server/tests/app/selfhost.e2e.ts +++ b/packages/backend/server/tests/app/selfhost.e2e.ts @@ -6,6 +6,7 @@ import { PrismaClient } from '@prisma/client'; import type { TestFn } from 'ava'; import ava from 'ava'; import request from 'supertest'; +import * as Y from 'yjs'; import { buildAppModule } from '../../src/app.module'; import { ServerService } from '../../src/core/config'; @@ -17,12 +18,26 @@ const test = ava as TestFn<{ db: PrismaClient; }>; +const mobileUAString = + 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36'; + function initTestStaticFiles(staticPath: string) { const files = { 'selfhost/index.html': `AFFiNE