diff --git a/package.json b/package.json index d47211754e37c..5cea6de97784b 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "docs/reference", "tools/@types/*", "tests/*", + "tests/affine-cloud/*", "tests/affine-legacy/*" ], "engines": { diff --git a/packages/backend/server/tests/copilot-provider.e2e.ts b/packages/backend/server/tests/copilot-provider.e2e.ts index 2e373bfdb0377..530db68d3e8e1 100644 --- a/packages/backend/server/tests/copilot-provider.e2e.ts +++ b/packages/backend/server/tests/copilot-provider.e2e.ts @@ -88,6 +88,7 @@ test.before(async t => { }); test.after(async t => { + if (!isCopilotConfigured) return; await runPrisma(async client => { await client.user.delete({ where: { diff --git a/tests/kit/utils/cloud.ts b/tests/kit/utils/cloud.ts index e1cf5b3df0a23..aadf9a24ab48a 100644 --- a/tests/kit/utils/cloud.ts +++ b/tests/kit/utils/cloud.ts @@ -160,7 +160,7 @@ export async function createRandomAIUser( }> { const user = { name: faker.internet.username(), - email: faker.internet.email().toLowerCase(), + email: faker.internet.email({ provider }).toLowerCase(), password: '123456', }; const result = await connector(async client => { diff --git a/yarn.lock b/yarn.lock index 9e671385c224e..c6e4fe3dd255f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -67,6 +67,26 @@ __metadata: languageName: unknown linkType: soft +"@affine-test/affine-cloud-copilot@workspace:tests/affine-cloud/copilot": + version: 0.0.0-use.local + resolution: "@affine-test/affine-cloud-copilot@workspace:tests/affine-cloud/copilot" + dependencies: + "@affine-test/kit": "workspace:*" + "@affine/server": "workspace:*" + "@playwright/test": "npm:=1.49.0" + ava: "npm:^6.1.2" + languageName: unknown + linkType: soft + +"@affine-test/affine-cloud@workspace:tests/affine-cloud/cloud": + version: 0.0.0-use.local + resolution: "@affine-test/affine-cloud@workspace:tests/affine-cloud/cloud" + dependencies: + "@affine-test/kit": "workspace:*" + "@playwright/test": "npm:=1.49.0" + languageName: unknown + linkType: soft + "@affine-test/affine-desktop-cloud@workspace:tests/affine-desktop-cloud": version: 0.0.0-use.local resolution: "@affine-test/affine-desktop-cloud@workspace:tests/affine-desktop-cloud" @@ -744,7 +764,7 @@ __metadata: languageName: unknown linkType: soft -"@affine/server@workspace:packages/backend/server": +"@affine/server@workspace:*, @affine/server@workspace:packages/backend/server": version: 0.0.0-use.local resolution: "@affine/server@workspace:packages/backend/server" dependencies: