Skip to content

refactor(server): use feature model #23966

refactor(server): use feature model

refactor(server): use feature model #23966

Triggered via pull request February 3, 2025 11:26
Status Failure
Total duration 13m 49s
Artifacts 9

build-test.yml

on: pull_request
Optimize CI
6s
Optimize CI
Matrix: build-native
Build Server native
1m 5s
Build Server native
Build @affine/electron renderer
2m 23s
Build @affine/electron renderer
test-build-mobile-app  /  output-env
3s
test-build-mobile-app / output-env
Matrix: Analyze
Matrix: Legacy Blocksuite E2E Test
Matrix: E2E Mobile Test
Matrix: E2E Test
Lint
9s
Lint
Check yarn binary
8s
Check yarn binary
Run native tests
3m 56s
Run native tests
Matrix: Unit Test
Matrix: Server Copilot E2E Test
Matrix: server-e2e-test
Server Test
5m 10s
Server Test
Server Copilot Api Test
2m 12s
Server Copilot Api Test
Matrix: desktop-test
test-build-mobile-app  /  build-android-web
2m 26s
test-build-mobile-app / build-android-web
test-build-mobile-app  /  build-ios-web
2m 26s
test-build-mobile-app / build-ios-web
test-build-mobile-app  /  android
3m 3s
test-build-mobile-app / android
test-build-mobile-app  /  ios
7m 17s
test-build-mobile-app / ios
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

57 errors, 13 warnings, and 24 notices
Lint
Process completed with exit code 1.
Server Copilot Api Test
Process completed with exit code 1.
[Mobile Safari] › explorer-tag.spec.ts:59:1 › rename a tag from explorer: tests/affine-mobile/e2e/explorer-tag.spec.ts#L41
1) [Mobile Safari] › explorer-tag.spec.ts:59:1 › rename a tag from explorer ────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "rename-input" Received: null 39 | // input name 40 | const focusedTestid = await getAttrOfActiveElement(page); > 41 | expect(focusedTestid).toEqual('rename-input'); | ^ 42 | await page.keyboard.type(name); 43 | // set color 44 | await changeTagColor(dialog, color); at createRootTag (/home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:41:25) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:63:15
attachment.spec.ts:129:1 › can insert attachment from slash menu: blocksuite/tests-legacy/attachment.spec.ts#L71
1) attachment.spec.ts:129:1 › can insert attachment from slash menu ────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 69 | await expect(slashMenu).toBeVisible(); 70 | > 71 | const fileChooser = page.waitForEvent('filechooser'); | ^ 72 | await pressEnter(page); 73 | await sleep(100); 74 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:71:30) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:137:3
attachment.spec.ts:261:1 › support dragging attachment block directly: blocksuite/tests-legacy/attachment.spec.ts#L71
2) attachment.spec.ts:261:1 › support dragging attachment block directly ───────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 69 | await expect(slashMenu).toBeVisible(); 70 | > 71 | const fileChooser = page.waitForEvent('filechooser'); | ^ 72 | await pressEnter(page); 73 | await sleep(100); 74 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:71:30) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:271:3
attachment.spec.ts:343:1 › cancel file picker with input element resolves: blocksuite/tests-legacy/attachment.spec.ts#L363
3) attachment.spec.ts:343:1 › cancel file picker with input element resolves ───────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 361 | await expect(slashMenu).toBeVisible(); 362 | > 363 | const fileChooser = page.waitForEvent('filechooser'); | ^ 364 | await pressEnter(page); 365 | const inputFile = page.locator("input[type='file']"); 366 | await expect(inputFile).toHaveCount(1); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:363:28
attachment.spec.ts:404:1 › indent attachment block to list: blocksuite/tests-legacy/attachment.spec.ts#L71
4) attachment.spec.ts:404:1 › indent attachment block to list ──────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 69 | await expect(slashMenu).toBeVisible(); 70 | > 71 | const fileChooser = page.waitForEvent('filechooser'); | ^ 72 | await pressEnter(page); 73 | await sleep(100); 74 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:71:30) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:412:3
clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list: blocksuite/tests-legacy/utils/asserts.ts#L207
5) clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ──────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "123", - "456aaa", + "aaa123", + "456", "bbb", ] at utils/asserts.ts:207 205 | }); 206 | }, currentEditorIndex); > 207 | expect(actualTexts).toEqual(texts); | ^ 208 | } 209 | 210 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:207:23) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/clipboard/list.spec.ts:343:3
selection/native.spec.ts:266:1 › cursor move to up and down with children block: blocksuite/tests-legacy/selection/native.spec.ts#L295
1) selection/native.spec.ts:266:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 293 | const textTwo = await getInlineSelectionText(page); 294 | expect(textTwo).toBe('arrow down test 1'); > 295 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 296 | expect(indexTwo).toBeLessThanOrEqual(17); 297 | await page.keyboard.press('ArrowDown'); 298 | const textThree = await getInlineSelectionText(page); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:295:20
slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow: blocksuite/tests-legacy/slash-menu.spec.ts#L388
2) slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected) Locator: locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4) Expected string: "true" Received string: "false" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('.slash-menu[data-testid=sub-menu-0]').locator('icon-button').nth(4) 9 × locator resolved to <icon-button width="100%" tabindex="0" height="44px" hover="false" role="button" text="Other Headings" data-test-disabled="false" data-testid="Other Headings" class="slash-menu-item other-headings">…</icon-button> - unexpected value "false" 386 | await type(page, '/'); 387 | await pressArrowDown(page, 4); > 388 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true'); | ^ 389 | await expect(slashItems.nth(4).locator('.text')).toHaveText([ 390 | 'Other Headings', 391 | ]); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/slash-menu.spec.ts:388:37
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size: blocksuite/tests-legacy/utils/asserts.ts#L778
1) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ─────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 192 Received: 92 Expected precision: 0 Expected difference: < 0.5 Received difference: 100 at utils/asserts.ts:778 776 | expect(a.y).toBeCloseTo(b.y, 0); 777 | expect(a.w).toBeCloseTo(b.w, 0); > 778 | expect(a.h).toBeCloseTo(b.h, 0); | ^ 779 | } 780 | 781 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) { at assertRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:778:15) at assertNoteRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:771:3) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/resize.spec.ts:188:3
Server Test
Process completed with exit code 1.
storage.spec.ts:29:1 › should show blob management dialog: tests/kit/src/utils/cloud.ts#L120
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:19:10
storage.spec.ts:29:1 › should show blob management dialog: tests/affine-cloud/e2e/storage.spec.ts#L26
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 24 | // if you want to keep the user in the database for debugging, 25 | // comment this line > 26 | await deleteUser(user.email); | ^ 27 | }); 28 | 29 | test('should show blob management dialog', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:26:25
storage.spec.ts:29:1 › should show blob management dialog: tests/kit/src/utils/cloud.ts#L120
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:19:10
storage.spec.ts:29:1 › should show blob management dialog: tests/affine-cloud/e2e/storage.spec.ts#L26
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 24 | // if you want to keep the user in the database for debugging, 25 | // comment this line > 26 | await deleteUser(user.email); | ^ 27 | }); 28 | 29 | test('should show blob management dialog', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:26:25
storage.spec.ts:29:1 › should show blob management dialog: tests/kit/src/utils/cloud.ts#L120
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:19:10
storage.spec.ts:29:1 › should show blob management dialog: tests/affine-cloud/e2e/storage.spec.ts#L26
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 24 | // if you want to keep the user in the database for debugging, 25 | // comment this line > 26 | await deleteUser(user.email); | ^ 27 | }); 28 | 29 | test('should show blob management dialog', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:26:25
storage.spec.ts:29:1 › should show blob management dialog: tests/kit/src/utils/cloud.ts#L120
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:19:10
storage.spec.ts:29:1 › should show blob management dialog: tests/affine-cloud/e2e/storage.spec.ts#L26
1) storage.spec.ts:29:1 › should show blob management dialog ───────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 24 | // if you want to keep the user in the database for debugging, 25 | // comment this line > 26 | await deleteUser(user.email); | ^ 27 | }); 28 | 29 | test('should show blob management dialog', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/storage.spec.ts:26:25
template.spec.ts:10:1 › import from template should work: tests/kit/src/utils/cloud.ts#L120
2) template.spec.ts:10:1 › import from template should work ────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/template.spec.ts:6:16
template.spec.ts:10:1 › import from template should work: tests/kit/src/utils/cloud.ts#L120
2) template.spec.ts:10:1 › import from template should work ────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/template.spec.ts:6:16
basic.spec.ts:22:1 › new page: tests/kit/src/utils/cloud.ts#L120
1) basic.spec.ts:22:1 › new page ───────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:19:10
basic.spec.ts:22:1 › new page: tests/kit/src/utils/cloud.ts#L120
1) basic.spec.ts:22:1 › new page ───────────────────────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:19:10
basic.spec.ts:22:1 › new page: tests/kit/src/utils/cloud.ts#L120
1) basic.spec.ts:22:1 › new page ───────────────────────────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:19:10
basic.spec.ts:22:1 › new page: tests/kit/src/utils/cloud.ts#L120
1) basic.spec.ts:22:1 › new page ───────────────────────────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-desktop-cloud/e2e/basic.spec.ts:19:10
Server Desktop E2E Test
Process completed with exit code 1.
links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode: tests/affine-local/e2e/links.spec.ts#L316
1) links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('affine-embed-linked-doc-block') - locator resolved to <affine-embed-linked-doc-block contenteditable="false" data-block-id="YYiGT7ZFsF" data-drop-target-for-element="true">…</affine-embed-linked-doc-block> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 100ms 9 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 500ms 314 | 315 | await expect(cardLink).toBeVisible(); > 316 | await cardLink.click(); | ^ 317 | 318 | // refocus 319 | await cardLink.click(); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:316:18
links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless: tests/affine-local/e2e/links.spec.ts#L610
2) links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for getByLabel('Switch view') 608 | .waitFor({ state: 'visible' }); 609 | await page.mouse.click(x - 50, y - 50); > 610 | await page.getByLabel('Switch view').click(); | ^ 611 | await page.getByTestId('link-to-embed').click(); 612 | 613 | const viewport = await page at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:610:40
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L120
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:26:10
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L265
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── TypeError: Cannot read properties of undefined (reading 'email') at ../../kit/src/utils/cloud.ts:265 263 | } 264 | ) { > 265 | await page.getByPlaceholder('Enter your email address').fill(user.email); | ^ 266 | await page.getByTestId('continue-login-button').click({ 267 | delay: 200, 268 | }); at loginUserDirectly (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:265:69) at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:250:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:30:3
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L120
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:26:10
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L265
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') at ../../kit/src/utils/cloud.ts:265 263 | } 264 | ) { > 265 | await page.getByPlaceholder('Enter your email address').fill(user.email); | ^ 266 | await page.getByTestId('continue-login-button').click({ 267 | delay: 200, 268 | }); at loginUserDirectly (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:265:69) at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:250:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:30:3
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L120
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:26:10
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L265
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') at ../../kit/src/utils/cloud.ts:265 263 | } 264 | ) { > 265 | await page.getByPlaceholder('Enter your email address').fill(user.email); | ^ 266 | await page.getByTestId('continue-login-button').click({ 267 | delay: 200, 268 | }); at loginUserDirectly (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:265:69) at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:250:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:30:3
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L120
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:26:10
collaboration.spec.ts:103:1 › can sync collections between different browser: tests/kit/src/utils/cloud.ts#L265
1) collaboration.spec.ts:103:1 › can sync collections between different browser ────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') at ../../kit/src/utils/cloud.ts:265 263 | } 264 | ) { > 265 | await page.getByPlaceholder('Enter your email address').fill(user.email); | ^ 266 | await page.getByTestId('continue-login-button').click({ 267 | delay: 200, 268 | }); at loginUserDirectly (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:265:69) at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:250:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:30:3
collaboration.spec.ts:134:1 › can sync svg between different browsers: tests/kit/src/utils/cloud.ts#L120
2) collaboration.spec.ts:134:1 › can sync svg between different browsers ───────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:26:10
collaboration.spec.ts:134:1 › can sync svg between different browsers: tests/kit/src/utils/cloud.ts#L265
2) collaboration.spec.ts:134:1 › can sync svg between different browsers ───────────────────────── TypeError: Cannot read properties of undefined (reading 'email') at ../../kit/src/utils/cloud.ts:265 263 | } 264 | ) { > 265 | await page.getByPlaceholder('Enter your email address').fill(user.email); | ^ 266 | await page.getByTestId('continue-login-button').click({ 267 | delay: 200, 268 | }); at loginUserDirectly (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:265:69) at loginUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:250:9) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/collaboration.spec.ts:30:3
Server E2E Test 1/3
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel: tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
1) blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel Test timeout of 50000ms exceeded.
blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel: tests/kit/src/utils/keyboard.ts#L31
1) blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel Error: keyboard.press: Test timeout of 50000ms exceeded. at ../../kit/src/utils/keyboard.ts:31 29 | // avoid flaky test by simulate real user input 30 | for (let i = 0; i < count; i++) { > 31 | await page.keyboard.press('Enter', { delay: 50 }); | ^ 32 | } 33 | } 34 | at pressEnter (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/keyboard.ts:31:25) at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:26:5) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:268:22
blocksuite/outline/outline-panel.spec.ts:284:3 › TOC and editor scroll › should scroll to title when click title in outline panel: tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
2) blocksuite/outline/outline-panel.spec.ts:284:3 › TOC and editor scroll › should scroll to title when click title in outline panel Test timeout of 50000ms exceeded.
blocksuite/outline/outline-panel.spec.ts:284:3 › TOC and editor scroll › should scroll to title when click title in outline panel: tests/kit/src/utils/keyboard.ts#L31
2) blocksuite/outline/outline-panel.spec.ts:284:3 › TOC and editor scroll › should scroll to title when click title in outline panel Error: keyboard.press: Test timeout of 50000ms exceeded. at ../../kit/src/utils/keyboard.ts:31 29 | // avoid flaky test by simulate real user input 30 | for (let i = 0; i < count; i++) { > 31 | await page.keyboard.press('Enter', { delay: 50 }); | ^ 32 | } 33 | } 34 | at pressEnter (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/keyboard.ts:31:25) at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:26:5) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:289:5
blocksuite/outline/outline-panel.spec.ts:455:3 › drag and drop note in outline panel › multiple selected note cards can be dragged and dropped at same time: tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L473
3) blocksuite/outline/outline-panel.spec.ts:455:3 › drag and drop note in outline panel › multiple selected note cards can be dragged and dropped at same time Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-paragraph').locator('[data-v-text="true"]').nth(1) Expected string: "3" Received string: "​" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-paragraph').locator('[data-v-text="true"]').nth(1) 9 × locator resolved to <span data-v-text="true">…</span> - unexpected value "​" 471 | await expect(paragraphs).toHaveCount(4); 472 | await expect(paragraphs.nth(0)).toContainText('2'); > 473 | await expect(paragraphs.nth(1)).toContainText('3'); | ^ 474 | await expect(paragraphs.nth(2)).toContainText('0'); 475 | await expect(paragraphs.nth(3)).toContainText('1'); 476 | }); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:473:37
Server E2E Test 2/3
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── TypeError: Cannot read properties of undefined (reading 'email') 28 | // if you want to keep the user in the database for debugging, 29 | // comment this line > 30 | await deleteUser(user.email); | ^ 31 | }); 32 | 33 | test('open in app card should be shown for cloud workspace', async ({ at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 28 | // if you want to keep the user in the database for debugging, 29 | // comment this line > 30 | await deleteUser(user.email); | ^ 31 | }); 32 | 33 | test('open in app card should be shown for cloud workspace', async ({ at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 28 | // if you want to keep the user in the database for debugging, 29 | // comment this line > 30 | await deleteUser(user.email); | ^ 31 | }); 32 | 33 | test('open in app card should be shown for cloud workspace', async ({ at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/kit/src/utils/cloud.ts#L120
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:19:10
open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace: tests/affine-cloud/e2e/open-in-app.spec.ts#L30
1) open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ─────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 28 | // if you want to keep the user in the database for debugging, 29 | // comment this line > 30 | await deleteUser(user.email); | ^ 31 | }); 32 | 33 | test('open in app card should be shown for cloud workspace', async ({ at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/open-in-app.spec.ts:30:25
page-history.spec.ts:35:1 › newly created page shows empty history: tests/kit/src/utils/cloud.ts#L120
2) page-history.spec.ts:35:1 › newly created page shows empty history ──────────────────────────── PrismaClientValidationError: Invalid `prisma.feature.findFirst()` invocation: { where: { feature: "free_plan_v1", ~~~~~~~ ? AND?: FeatureWhereInput | FeatureWhereInput[], ? OR?: FeatureWhereInput[], ? NOT?: FeatureWhereInput | FeatureWhereInput[], ? id?: IntFilter | Int, ? name?: StringFilter | String, ? configs?: JsonFilter, ? createdAt?: DateTimeFilter | DateTime, ? updatedAt?: DateTimeFilter | DateTime, ? deprecatedVersion?: IntFilter | Int, ? deprecatedType?: IntFilter | Int }, select: { id: true }, orderBy: { version: "desc" } } Unknown argument `feature`. Available options are marked with ?. at ../../kit/src/utils/cloud.ts:120 118 | }; 119 | const result = await runPrisma(async client => { > 120 | const featureId = await client.feature | ^ 121 | .findFirst({ 122 | where: { feature: 'free_plan_v1' }, 123 | select: { id: true }, at wn (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:29:1363) at $n.handleRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6958) at $n.handleAndLogRequestError (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6623) at $n.request (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:121:6307) at l (/home/runner/work/AFFiNE/AFFiNE/packages/backend/server/node_modules/@prisma/client/runtime/library.js:130:9633) at /home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:120:23 at runPrisma (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:75:12) at createRandomUser (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/cloud.ts:119:18) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/page-history.spec.ts:25:10
page-history.spec.ts:35:1 › newly created page shows empty history: tests/affine-cloud/e2e/page-history.spec.ts#L32
2) page-history.spec.ts:35:1 › newly created page shows empty history ──────────────────────────── TypeError: Cannot read properties of undefined (reading 'email') 30 | // if you want to keep the user in the database for debugging, 31 | // comment this line > 32 | await deleteUser(user.email); | ^ 33 | }); 34 | 35 | test('newly created page shows empty history', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-cloud/e2e/page-history.spec.ts:32:25
3, 2, 1 Launch
Process completed with exit code 1.
Slow Test: tests/affine-mobile/[Mobile Safari] › home.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › home.spec.ts took 38.4s
Slow Test: tests/affine-mobile/[Mobile Safari] › back-button-visibility.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › back-button-visibility.spec.ts took 41.5s
Slow Test: tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-tag.spec.ts took 41.8s
Slow Test: tests/affine-mobile/[Mobile Chrome] › detail.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › detail.spec.ts took 42.8s
Slow Test: tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › explorer-favorite.spec.ts took 40.1s
Slow Test: tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › explorer-folder.spec.ts took 41.9s
Slow Test: tests/affine-local/duplicate-page.spec.ts#L1
tests/affine-local/duplicate-page.spec.ts took 39.4s
Slow Test: tests/affine-local/drag-page.spec.ts#L1
tests/affine-local/drag-page.spec.ts took 39.1s
Analyze (typescript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (typescript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
Analyze (javascript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (javascript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
test-build-mobile-app / ios
swiftformat 0.55.4 is already installed and up-to-date. To reinstall 0.55.4, run: brew reinstall swiftformat
🎭 Playwright Run Summary
7 passed (1.2m)
🎭 Playwright Run Summary
8 passed (1.6m)
🎭 Playwright Run Summary
7 passed (1.1m)
🎭 Playwright Run Summary
7 passed (1.2m)
🎭 Playwright Run Summary
4 skipped 93 passed (1.5m)
🎭 Playwright Run Summary
2 skipped 95 passed (1.5m)
🎭 Playwright Run Summary
96 passed (1.5m)
🎭 Playwright Run Summary
1 skipped 96 passed (1.6m)
🎭 Playwright Run Summary
1 flaky [Mobile Safari] › explorer-tag.spec.ts:59:1 › rename a tag from explorer ─────────────────────── 6 passed (1.4m)
🎭 Playwright Run Summary
5 flaky attachment.spec.ts:129:1 › can insert attachment from slash menu ─────────────────────────────── attachment.spec.ts:261:1 › support dragging attachment block directly ────────────────────────── attachment.spec.ts:343:1 › cancel file picker with input element resolves ────────────────────── attachment.spec.ts:404:1 › indent attachment block to list ───────────────────────────────────── clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ───────────────────────── 2 skipped 90 passed (1.6m)
🎭 Playwright Run Summary
2 flaky selection/native.spec.ts:266:1 › cursor move to up and down with children block ──────────────── slash-menu.spec.ts:365:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys 3 skipped 91 passed (1.4m)
🎭 Playwright Run Summary
6 skipped 91 passed (2.4m)
🎭 Playwright Run Summary
1 skipped 96 passed (2.9m)
🎭 Playwright Run Summary
1 flaky edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ──────────────── 12 skipped 84 passed (2.3m)
🎭 Playwright Run Summary
1 skipped 47 passed (3.8m)
🎭 Playwright Run Summary
4 failed storage.spec.ts:29:1 › should show blob management dialog ────────────────────────────────────── template.spec.ts:10:1 › import from template should work ─────────────────────────────────────── workspace.spec.ts:31:1 › should have pagination in member list ───────────────────────────────── workspace.spec.ts:103:1 › should transform local favorites data ────────────────────────────────
🎭 Playwright Run Summary
4 skipped 93 passed (2.3m)
🎭 Playwright Run Summary
1 failed basic.spec.ts:22:1 › new page ──────────────────────────────────────────────────────────────────
🎭 Playwright Run Summary
3 skipped 45 passed (4.1m)
🎭 Playwright Run Summary
1 skipped 48 passed (4.4m)
🎭 Playwright Run Summary
2 flaky links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode links.spec.ts:568:1 › should show edgeless content when switching card view of linked mode doc in edgeless 46 passed (4.5m)
🎭 Playwright Run Summary
5 failed collaboration.spec.ts:103:1 › can sync collections between different browser ─────────────────── collaboration.spec.ts:134:1 › can sync svg between different browsers ────────────────────────── login.spec.ts:40:3 › login first › exit successfully and re-login ────────────────────────────── login.spec.ts:60:3 › login first › can sign out ──────────────────────────────────────────────── login.spec.ts:81:3 › login first › can see and change email and password in setting panel ────── 2 skipped 1 passed (2.3m)
🎭 Playwright Run Summary
3 flaky blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel blocksuite/outline/outline-panel.spec.ts:284:3 › TOC and editor scroll › should scroll to title when click title in outline panel blocksuite/outline/outline-panel.spec.ts:455:3 › drag and drop note in outline panel › multiple selected note cards can be dragged and dropped at same time 45 passed (5.1m)
🎭 Playwright Run Summary
11 failed open-in-app.spec.ts:33:1 › open in app card should be shown for cloud workspace ──────────────── page-history.spec.ts:35:1 › newly created page shows empty history ───────────────────────────── page-history.spec.ts:88:1 › can restore page to a history version ────────────────────────────── share-page.spec.ts:30:1 › can enable share page ──────────────────────────────────────────────── share-page.spec.ts:70:1 › share page should have toc ─────────────────────────────────────────── share-page.spec.ts:126:1 › append paragraph should be disabled in shared mode ────────────────── share-page.spec.ts:174:1 › share page with default edgeless ──────────────────────────────────── share-page.spec.ts:219:1 › image preview should be shown ─────────────────────────────────────── share-page.spec.ts:259:1 › The reference links in the shared page should be accessible normally and can go back and forward share-page.spec.ts:341:1 › Should show no permission page when the share page is not found ───── share-page.spec.ts:351:1 › Inline latex modal should be not shown in shared mode when clicking ─

Artifacts

Produced during runtime
Name Size
affine.darwin-arm64.node
1.92 MB
affine.darwin-x64.node
2.04 MB
affine.linux-x64-gnu.node
2.07 MB
affine.win32-x64-msvc.node
2.44 MB
android
61.3 MB
ios
61.3 MB
server-native.node
4.33 MB
test-results-e2e-server
134 KB
web
62.8 MB