Skip to content

feat: update adapter (#6090) #132

feat: update adapter (#6090)

feat: update adapter (#6090) #132

Triggered via push January 24, 2024 02:29
Status Failure
Total duration 5m 38s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yaml

on: push
Node.js Environment Compatibility
42s
Node.js Environment Compatibility
Unit test
1m 20s
Unit test
Integration test
29s
Integration test
Inline Editor E2E test
57s
Inline Editor E2E test
Matrix: Playground E2E test
Fit to window
Zoom out
Zoom in

Annotations

28 errors, 1 warning, and 11 notices
attachment.spec.ts:265:1 › should rename attachment works: tests/attachment.spec.ts#L1
1) attachment.spec.ts:265:1 › should rename attachment works ───────────────────────────────────── Test finished within timeout of 30000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
basic.spec.ts:349:1 › should undo/redo cursor works on title: tests/utils/asserts.ts#L147
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "title2" Received: "2title" at utils/asserts.ts:147 145 | const inlineEditor = editor.locator('.doc-title-container').first(); 146 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText()); > 147 | expect(vText).toBe(text); | ^ 148 | } 149 | 150 | export async function assertInlineEditorDeltas( at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:147:17) at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:369:3
basic.spec.ts:349:1 › should undo/redo cursor works on title: tests/utils/asserts.ts#L147
2) basic.spec.ts:349:1 › should undo/redo cursor works on title ────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "title2" Received: "2title" at utils/asserts.ts:147 145 | const inlineEditor = editor.locator('.doc-title-container').first(); 146 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText()); > 147 | expect(vText).toBe(text); | ^ 148 | } 149 | 150 | export async function assertInlineEditorDeltas( at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:147:17) at /home/runner/work/blocksuite/blocksuite/tests/basic.spec.ts:369:3
hotkey.spec.ts:1004:1 › should cut work single line: tests/utils/asserts.ts#L630
1) hotkey.spec.ts:1004:1 › should cut work single line ─────────────────────────────────────────── Error: <affine:note prop:background="--affine-background-secondary-color" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "solid", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:text="hello" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -13,9 +13,9 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="ho" + prop:text="hello" prop:type="text" /> </affine:note> at utils/asserts.ts:630 628 | printFunctionName: false, 629 | }); > 630 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 631 | } 632 | 633 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:630:38) at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
hotkey.spec.ts:1004:1 › should cut work single line: tests/utils/asserts.ts#L630
1) hotkey.spec.ts:1004:1 › should cut work single line ─────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: <affine:note prop:background="--affine-background-secondary-color" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "solid", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:text="hello" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -13,9 +13,9 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="ho" + prop:text="hello" prop:type="text" /> </affine:note> at utils/asserts.ts:630 628 | printFunctionName: false, 629 | }); > 630 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 631 | } 632 | 633 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:630:38) at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
hotkey.spec.ts:1004:1 › should cut work single line: tests/utils/asserts.ts#L630
1) hotkey.spec.ts:1004:1 › should cut work single line ─────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: <affine:note prop:background="--affine-background-secondary-color" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "solid", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:text="hello" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -13,9 +13,9 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="ho" + prop:text="hello" prop:type="text" /> </affine:note> at utils/asserts.ts:630 628 | printFunctionName: false, 629 | }); > 630 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 631 | } 632 | 633 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:630:38) at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
hotkey.spec.ts:1004:1 › should cut work single line: tests/utils/asserts.ts#L630
1) hotkey.spec.ts:1004:1 › should cut work single line ─────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: <affine:note prop:background="--affine-background-secondary-color" prop:displayMode="both" prop:edgeless={ Object { "style": Object { "borderRadius": 8, "borderSize": 4, "borderStyle": "solid", "shadowType": "--affine-note-shadow-box", }, } } prop:hidden={false} prop:index="a0" > <affine:paragraph prop:text="hello" prop:type="text" /> </affine:note> expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -13,9 +13,9 @@ } prop:hidden={false} prop:index="a0" > <affine:paragraph - prop:text="ho" + prop:text="hello" prop:type="text" /> </affine:note> at utils/asserts.ts:630 628 | printFunctionName: false, 629 | }); > 630 | expect(formattedJSX, formattedJSX).toEqual(snapshot.trimStart()); | ^ 631 | } 632 | 633 | type MimeType = 'text/plain' | 'blocksuite/x-c+w' | 'text/html'; at assertStoreMatchJSX (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:630:38) at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:1013:3
Playground E2E test (7)
Process completed with exit code 1.
clipboard.spec.ts:1020:1 › copy canvas element and text note in edgeless mode: tests/clipboard.spec.ts#L1
1) clipboard.spec.ts:1020:1 › copy canvas element and text note in edgeless mode ───────────────── Test finished within timeout of 30000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
slash-menu.spec.ts:467:1 › slash menu should work in edgeless mode: tests/utils/asserts.ts#L205
1) slash-menu.spec.ts:467:1 › slash menu should work in edgeless mode ──────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "", - "/", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:474:3
edgeless/auto-complete.spec.ts:112:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L205
1) edgeless/auto-complete.spec.ts:112:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ - "hello", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:128:7
edgeless/shape.spec.ts:65:3 › add shape › with holding shift key: tests/edgeless/shape.spec.ts#L1
1) edgeless/shape.spec.ts:65:3 › add shape › with holding shift key ────────────────────────────── Test timeout of 30000ms exceeded.
edgeless/shape.spec.ts:65:3 › add shape › with holding shift key: tests/utils/actions/drag.ts#L21
1) edgeless/shape.spec.ts:65:3 › add shape › with holding shift key ────────────────────────────── Error: mouse.move: Test timeout of 30000ms exceeded. at utils/actions/drag.ts:21 19 | await page.mouse.move(x1, y1); 20 | await page.mouse.down(); > 21 | await page.mouse.move(x2, y2, { steps }); | ^ 22 | await options?.beforeMouseUp?.(); 23 | await page.mouse.up(); 24 | } at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20) at addBasicRectShapeElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:347:3) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:85:5
edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar: tests/edgeless/shape.spec.ts#L1
2) edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ─────────────────────────────── Test timeout of 30000ms exceeded.
edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar: tests/utils/actions/drag.ts#L21
2) edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ─────────────────────────────── Error: mouse.move: Test timeout of 30000ms exceeded. at utils/actions/drag.ts:21 19 | await page.mouse.move(x1, y1); 20 | await page.mouse.down(); > 21 | await page.mouse.move(x2, y2, { steps }); | ^ 22 | await options?.beforeMouseUp?.(); 23 | await page.mouse.up(); 24 | } at dragBetweenCoords (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:21:20) at addBasicBrushElement (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:337:3) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:99:3
edgeless/shape.spec.ts:131:1 › change shape stroke color: tests/edgeless/shape.spec.ts#L1
3) edgeless/shape.spec.ts:131:1 › change shape stroke color ────────────────────────────────────── Test finished within timeout of 30000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
format-bar.spec.ts:1537:1 › can extend format bar: tests/format-bar.spec.ts#L1543
4) format-bar.spec.ts:1537:1 › can extend format bar ───────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('custom-format-bar-element') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('custom-format-bar-element') 1541 | await extendFormatBar(page); 1542 | await dragBetweenIndices(page, [0, 0], [2, 3]); > 1543 | await expect(page.getByTestId('custom-format-bar-element')).toBeVisible(); | ^ 1544 | }); 1545 | 1546 | test('format quick bar should not break cursor jumping', async ({ page }) => { at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:1543:63
edgeless/group.spec.ts:458:5 › group › group title › edit group title by component toolbar: tests/edgeless/group.spec.ts#L452
1) edgeless/group.spec.ts:458:5 › group › group title › edit group title by component toolbar ──── Test timeout of 30000ms exceeded while running "beforeEach" hook. 450 | 451 | test.describe('group title', () => { > 452 | test.beforeEach(async ({ page }) => { | ^ 453 | await init(page); 454 | await selectAllByKeyboard(page); 455 | await triggerComponentToolbarAction(page, 'addGroup'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:452:10
edgeless/group.spec.ts:458:5 › group › group title › edit group title by component toolbar: tests/edgeless/group.spec.ts#L1
1) edgeless/group.spec.ts:458:5 › group › group title › edit group title by component toolbar ──── Error: browser.newContext: Test ended.
edgeless/group.spec.ts:467:5 › group › group title › edit group title by dbclick: tests/edgeless/group.spec.ts#L1
2) edgeless/group.spec.ts:467:5 › group › group title › edit group title by dbclick ────────────── Test timeout of 30000ms exceeded.
edgeless/group.spec.ts:467:5 › group › group title › edit group title by dbclick: tests/utils/actions/keyboard.ts#L27
2) edgeless/group.spec.ts:467:5 › group › group title › edit group title by dbclick ────────────── Error: keyboard.type: Test timeout of 30000ms exceeded. at utils/actions/keyboard.ts:27 25 | 26 | export async function type(page: Page, content: string, delay = 20) { > 27 | await page.keyboard.type(content, { delay }); | ^ 28 | } 29 | 30 | export async function withPressKey( at type (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/keyboard.ts:27:23) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:475:13
edgeless/group.spec.ts:479:5 › group › group title › blur unmount group editor: tests/edgeless/group.spec.ts#L452
3) edgeless/group.spec.ts:479:5 › group › group title › blur unmount group editor ──────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 450 | 451 | test.describe('group title', () => { > 452 | test.beforeEach(async ({ page }) => { | ^ 453 | await init(page); 454 | await selectAllByKeyboard(page); 455 | await triggerComponentToolbarAction(page, 'addGroup'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:452:10
edgeless/group.spec.ts:479:5 › group › group title › blur unmount group editor: tests/utils/actions/edgeless.ts#L903
3) edgeless/group.spec.ts:479:5 › group › group title › blur unmount group editor ──────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for locator('edgeless-component-toolbar').locator('edgeless-add-group-button') - locator resolved to <edgeless-add-group-button></edgeless-add-group-button> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling at utils/actions/edgeless.ts:903 901 | 'edgeless-add-group-button' 902 | ); > 903 | await button.click(); | ^ 904 | break; 905 | } 906 | case 'ungroup': { at triggerComponentToolbarAction (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:903:20) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/group.spec.ts:455:13
edgeless/note.spec.ts:180:1 › add Note: tests/utils/asserts.ts#L205
4) edgeless/note.spec.ts:180:1 › add Note ──────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Array [ "", - "hello", + "", ] at utils/asserts.ts:205 203 | }); 204 | }, currentEditorIndex); > 205 | expect(actualTexts).toEqual(texts); | ^ 206 | } 207 | 208 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:205:23) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:189:3
edgeless/note.spec.ts:356:1 › drag handle should work across multiple notes: tests/edgeless/note.spec.ts#L382
5) edgeless/note.spec.ts:356:1 › drag handle should work across multiple notes ─────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeHidden() Locator: locator('.affine-drag-handle-container') Expected: hidden Received: visible Call log: - expect.toBeHidden with timeout 5000ms - waiting for locator('.affine-drag-handle-container') - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" - locator resolved to <div class="affine-drag-handle-container">…</div> - unexpected value "visible" 380 | await dragHandleFromBlockToBlockBottomById(page, '3', '4'); 381 | await waitNextFrame(page); > 382 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden(); | ^ 383 | await assertRichTexts(page, ['456', '123', '789', '000']); 384 | 385 | await expect(page.locator('selected > *')).toHaveCount(0); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:382:63
edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element: tests/edgeless/basic.spec.ts#L1
1) edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element ────────────────── Test finished within timeout of 30000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element: tests/edgeless/basic.spec.ts#L1
2) edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element Test finished within timeout of 30000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown: tests/edgeless/basic.spec.ts#L187
3) edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown Error: expect.toBeVisible: Error: strict mode violation: locator('.affine-tooltip') resolved to 2 elements: 1) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'Select V' }) 2) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'More' }) Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-tooltip') 185 | 186 | await page.mouse.move(moreButtonBox.x + 10, moreButtonBox.y + 10); > 187 | await expect(tooltip).toBeVisible(); | ^ 188 | 189 | await page.mouse.click(moreButtonBox.x + 10, moreButtonBox.y + 10); 190 | await expect(tooltip).toBeHidden(); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:187:25
Playground E2E test (7)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
🎭 Playwright Run Summary
12 passed (26.5s)
🎭 Playwright Run Summary
2 flaky attachment.spec.ts:265:1 › should rename attachment works ────────────────────────────────────── basic.spec.ts:349:1 › should undo/redo cursor works on title ─────────────────────────────────── 16 skipped 47 passed (2.8m)
🎭 Playwright Run Summary
1 failed hotkey.spec.ts:1004:1 › should cut work single line ──────────────────────────────────────────── 5 skipped 58 passed (3.1m)
🎭 Playwright Run Summary
1 flaky clipboard.spec.ts:1020:1 › copy canvas element and text note in edgeless mode ────────────────── 8 skipped 56 passed (2.8m)
🎭 Playwright Run Summary
64 passed (2.9m)
🎭 Playwright Run Summary
1 flaky slash-menu.spec.ts:467:1 › slash menu should work in edgeless mode ───────────────────────────── 2 skipped 61 passed (3.0m)
🎭 Playwright Run Summary
1 skipped 63 passed (3.1m)
🎭 Playwright Run Summary
1 flaky edgeless/auto-complete.spec.ts:112:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note 64 passed (3.4m)
🎭 Playwright Run Summary
4 flaky edgeless/shape.spec.ts:65:3 › add shape › with holding shift key ─────────────────────────────── edgeless/shape.spec.ts:92:1 › delete shape by component-toolbar ──────────────────────────────── edgeless/shape.spec.ts:131:1 › change shape stroke color ─────────────────────────────────────── format-bar.spec.ts:1537:1 › can extend format bar ────────────────────────────────────────────── 1 skipped 60 passed (3.8m)
🎭 Playwright Run Summary
5 flaky edgeless/group.spec.ts:458:5 › group › group title › edit group title by component toolbar ───── edgeless/group.spec.ts:467:5 › group › group title › edit group title by dbclick ─────────────── edgeless/group.spec.ts:479:5 › group › group title › blur unmount group editor ───────────────── edgeless/note.spec.ts:180:1 › add Note ───────────────────────────────────────────────────────── edgeless/note.spec.ts:356:1 › drag handle should work across multiple notes ──────────────────── 60 passed (4.5m)
🎭 Playwright Run Summary
3 flaky edgeless/basic.spec.ts:118:1 › option/alt mouse drag duplicate a new element ─────────────────── edgeless/basic.spec.ts:139:1 › should cancel select when the selected point is outside the current selected element edgeless/basic.spec.ts:164:1 › the tooltip of more button should be hidden when the action menu is shown 3 skipped 59 passed (4.4m)

Artifacts

Produced during runtime
Name Size
test-results-main Expired
4.16 MB