Skip to content

feat: linked doc supports aliases #8335

feat: linked doc supports aliases

feat: linked doc supports aliases #8335

Triggered via pull request December 5, 2024 13:20
Status Cancelled
Total duration 3m 46s
Artifacts

test.yml

on: pull_request
Install Dependencies
1m 8s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
0s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

44 errors, 19 warnings, and 14 notices
clipboard/clipboard.spec.ts:325:1 › clipboard copy nested items: tests/clipboard/clipboard.spec.ts#L348
1) clipboard/clipboard.spec.ts:325:1 › clipboard copy nested items ─────────────────────────────── Error: Snapshot comparison failed: bc d Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/clipboard/clipboard.spec.ts/clipboard-copy-nested-items-clipboard.md Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/clipboard-clipboard-clipboard-copy-nested-items/clipboard-copy-nested-items-clipboard-actual.md 346 | const html = await getClipboardHTML(page); 347 | const snapshot = await getClipboardSnapshot(page); > 348 | expect(text).toMatchSnapshot(`${testInfo.title}-clipboard.md`); | ^ 349 | expect(JSON.stringify(snapshot.snapshot.content, null, 2)).toMatchSnapshot( 350 | `${testInfo.title}-clipboard.json` 351 | ); at /home/runner/work/blocksuite/blocksuite/tests/clipboard/clipboard.spec.ts:348:16
attachment.spec.ts:406:1 › should attachment can be deleted: tests/attachment.spec.ts#L69
1) attachment.spec.ts:406:1 › should attachment can be deleted ─────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:412:3
E2E Test (19)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
selection/native.spec.ts:265:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L294
1) selection/native.spec.ts:265:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 292 | const textTwo = await getInlineSelectionText(page); 293 | expect(textTwo).toBe('arrow down test 1'); > 294 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 295 | expect(indexTwo).toBeLessThanOrEqual(17); 296 | await page.keyboard.press('ArrowDown'); 297 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:294:20
E2E Test (4)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (4)
The operation was canceled.
E2E Test (14)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
hotkey/multiline.spec.ts:100:1 › should cut work multiple line: tests/hotkey/multiline.spec.ts#L110
1) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ──────────────────────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "123" } ] } }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "456" } ] } }, "children": [] }, { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "789" } ] } }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/hotkey/multiline.spec.ts/should-cut-work-multiple-line-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/hotkey-multiline-should-cut-work-multiple-line/should-cut-work-multiple-line-init-actual.json 108 | // cut 109 | await page.keyboard.press(`${SHORT_KEY}+x`); > 110 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 111 | `${testInfo.title}_init.json` 112 | ); 113 | await undoByKeyboard(page); at /home/runner/work/blocksuite/blocksuite/tests/hotkey/multiline.spec.ts:110:45
E2E Test (14)
The operation was canceled.
E2E Test (10)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
edgeless/paste-block.spec.ts:40:3 › pasting blocks › pasting a note block: tests/edgeless/paste-block.spec.ts#L63
1) edgeless/paste-block.spec.ts:40:3 › pasting blocks › pasting a note block ───────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').first() - Expected string - 1 + Received string + 21 - hello + + + + + 50 + + + Type '/' for commands + + + + + + + + + + + + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-edgeless-note[data-block-id="10"]').locator('[data-block-id]').first() - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-block-id="11">…</affine-paragraph> - unexpected value " 50 Type '/' for commands " - locator resolved to <affine-paragraph data-
E2E Test (10)
The operation was canceled.
Build
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
Build
The operation was canceled.
E2E Test (13)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (13)
The operation was canceled.
Unit Test (2)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
Unit Test (2)
The operation was canceled.
E2E Test (12)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L357
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-slide-menu edgeless-tool-icon-button') 356 | .filter({ hasText: shape }); > 357 | await squareShapeButton.click(); | ^ 358 | break; 359 | } 360 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
E2E Test (12)
The operation was canceled.
Lint
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
Lint
The operation was canceled.
E2E Test (5)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (5)
The operation was canceled.
Unit Test (4)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
Unit Test (4)
The operation was canceled.
E2E Test (6)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (6)
The operation was canceled.
E2E Test (11)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (11)
The operation was canceled.
E2E Test (15)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter: tests/latex/block.spec.ts#L59
1) latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ───────────────── Error: Snapshot comparison failed: { "type": "block", "id": "0", "flavour": "affine:page", "version": 2, "props": { "title": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [ { "type": "block", "id": "1", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": "--affine-note-background-white", "index": "a0", "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [ { "type": "block", "id": "2", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [] } }, "children": [] }, { "type": "block", "id": "3", "flavour": "affine:latex", "version": 1, "props": { "xywh": "[0,0,16,16]", "index": "a0", "scale": 1, "rotate": 0, "latex": "aaa" }, "children": [] } ] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/latex/block.spec.ts/add-latex-block-using-markdown-shortcut-with-enter-finial.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/latex-block-add-latex-bloc-e0ffb-arkdown-shortcut-with-enter/add-latex-block-using-mark-e889d-tcut-with-enter-finial-actual.json 57 | await type(page, '$$$$\naaa'); 58 | > 59 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 60 | `${testInfo.title}_finial.json` 61 | ); 62 | }); at /home/runner/work/blocksuite/blocksuite/tests/latex/block.spec.ts:59:45
latex/inline.spec.ts:94:1 › update inline latex by clicking the node: tests/latex/inline.spec.ts#L126
2) latex/inline.spec.ts:94:1 › update inline latex by clicking the node ────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 7 + Received + 1 - <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\def\arraystretch{1.5} - \begin{array}{c:c:c} - a &amp; b &amp; c \\ \\ hline - d &amp; e &amp; f \\ - \hdashline - g &amp; h &amp; i - \end{array}</annotation></semantics></math> + <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">E=mc^2</annotation></semantics></math> 124 | await pressShiftEnter(page); 125 | await type(page, String.raw`\end{array}`); > 126 | expect(await latexElement.locator('.katex').innerHTML()).toBe( | ^ 127 | '<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\\def\\arraystretch{1.5}\n\\begin{array}{c:c:c}\na &amp; b &amp; c \\\\ \\\\ hline\nd &amp; e &amp; f \\\\\n\\hdashline\ng &amp; h &amp; i\n\\end{array}</annotation></semantics></math>' 128 | ); 129 | at /home/runner/work/blocksuite/blocksuite/tests/latex/inline.spec.ts:126:60
E2E Test (15)
The operation was canceled.
E2E Test (9)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (9)
The operation was canceled.
Unit Test (1)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
Unit Test (1)
The operation was canceled.
E2E Test (7)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (7)
The operation was canceled.
E2E Test (8)
Canceling since a higher priority waiting request for 'Test-refs/pull/8806/merge' exists
E2E Test (8)
The operation was canceled.
Build & Test
Process completed with exit code 1.
Install Dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (16)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (17)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Build & Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
3 skipped 44 passed (42.9s)
🎭 Playwright Run Summary
1 flaky clipboard/clipboard.spec.ts:325:1 › clipboard copy nested items ──────────────────────────────── 1 skipped 46 passed (48.6s)
🎭 Playwright Run Summary
47 passed (52.9s)
🎭 Playwright Run Summary
47 passed (52.0s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:406:1 › should attachment can be deleted ──────────────────────────────────── 2 skipped 45 passed (56.5s)
🎭 Playwright Run Summary
4 skipped 44 passed (55.3s)
🎭 Playwright Run Summary
47 passed (49.2s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:265:1 › cursor move to up and down with children block ──────────────── 46 passed (57.4s)
🎭 Playwright Run Summary
48 passed (1.0m)
🎭 Playwright Run Summary
1 flaky hotkey/multiline.spec.ts:100:1 › should cut work multiple line ───────────────────────────────── 47 passed (59.0s)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:40:3 › pasting blocks › pasting a note block ────────────────────── 2 skipped 45 passed (1.1m)
🎭 Playwright Run Summary
48 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 45 passed (1.2m)
🎭 Playwright Run Summary
2 flaky latex/block.spec.ts:46:1 › add latex block using markdown shortcut with enter ────────────────── latex/inline.spec.ts:94:1 › update inline latex by clicking the node ─────────────────────────── 2 skipped 43 passed (1.0m)