Skip to content

feat: markdown adapter with latex #6503

feat: markdown adapter with latex

feat: markdown adapter with latex #6503

Triggered via pull request October 10, 2024 08:47
Status Success
Total duration 4m 5s
Artifacts

test.yml

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

Annotations

9 errors, 20 warnings, and 20 notices
slash-menu.spec.ts:376:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow: tests/slash-menu.spec.ts#L399
1) slash-menu.spec.ts:376: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) - 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" - 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" - 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" - 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" - 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" - 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" - 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" - 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" - 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" 397 | await type(page, '/'); 398 | await pressArrowDown(page, 4); > 399 | await expect(slashItems.nth(4)).toHaveAttribute('hover', 'true'); | ^ 400 | await expect(slashItems.nth(4).locator('.text')).toHaveText([ 401 | 'Other Headings', 402 | ]); at /home/runner/work/blocksuite/blocksuite/tests/slash-menu.spec.ts:399:37
code/copy-paste.spec.ts:66:1 › drag copy paste: tests/code/copy-paste.spec.ts#L79
1) code/copy-paste.spec.ts:66:1 › drag copy paste ──────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "useuse" Received: "123use" 77 | 78 | const content = await getInlineSelectionText(page); > 79 | expect(content).toBe('useuse'); | ^ 80 | 81 | await assertRichTextInlineRange(page, 0, 3, 0); 82 | }); at /home/runner/work/blocksuite/blocksuite/tests/code/copy-paste.spec.ts:79:19
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,800,95]", "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
selection/native.spec.ts:289:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L318
1) selection/native.spec.ts:289:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 316 | const textTwo = await getInlineSelectionText(page); 317 | expect(textTwo).toBe('arrow down test 1'); > 318 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 319 | expect(indexTwo).toBeLessThanOrEqual(17); 320 | await page.keyboard.press('ArrowDown'); 321 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:318:20
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-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 was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('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
format-bar.spec.ts:237:1 › should format quick bar be able to change background color: tests/format-bar.spec.ts#L275
2) format-bar.spec.ts:237:1 › should format quick bar be able to change background color ───────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('.affine-format-bar-widget').getByTestId('unset') - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - attempting click action - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not visible - retrying click action, attempt #13 - waiting 500ms 273 | 274 | await expect(highlight.defaultColorBtn).toBeVisible(); > 275 | await highlight.defaultColorBtn.click(); | ^ 276 | 277 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( 278 | `${testInfo.title}_default_color.json` at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:275:35
format-bar.spec.ts:237:1 › should format quick bar be able to change background color: tests/format-bar.spec.ts#L274
2) format-bar.spec.ts:237:1 › should format quick bar be able to change background color ───────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-format-bar-widget').getByTestId('unset') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.affine-format-bar-widget').getByTestId('unset') - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" - locator resolved to <editor-menu-action role="button" data-testid="unset">…</editor-menu-action> - unexpected value "hidden" 272 | ); 273 | > 274 | await expect(highlight.defaultColorBtn).toBeVisible(); | ^ 275 | await highlight.defaultColorBtn.click(); 276 | 277 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:274:43
edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block: tests/edgeless/paste-block.spec.ts#L92
1) edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ───────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - Expected string - 1 + Received string + 17 - hello + + + + + ello + + + + + + + + + + + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('affine-edgeless-text[data-block-id="12"]').locator('[data-block-id]').first() - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " - locator resolved to <affine-paragraph data-block-id="13">…</affine-paragraph> - unexpected value " ello " 90 | await expect(newText).toBeVisible(); 91 | const blocks = newText.locator('[data-block-id]'); > 92 | await expect(blocks.nth(0)).toContainText('hello'); | ^ 93 | await expect(blocks.nth(1).locator('.resizable-img')).toBeVisible(); 94 | await expect(blocks.nth(2)).toContainText('world'); 95 | await expect(blocks.nth(3)).toContainText('code'); at /home/runner/work/blocksuite/blocksuite/tests/edgeless/paste-block.spec.ts:92:33
edgeless/clipboard.spec.ts:82:3 › frame clipboard › copy and paste frame with shape elements inside: tests/edgeless/clipboard.spec.ts#L100
1) edgeless/clipboard.spec.ts:82:3 › frame clipboard › copy and paste frame with shape elements inside Error: expect(received).toBe(expected) // Object.is equality Expected: 6 Received: 4 98 | await waitNextFrame(page, 500); 99 | const sortedIds = await getAllSortedIds(page); > 100 | expect(sortedIds.length).toBe(6); | ^ 101 | }); 102 | 103 | test('copy and paste frame with group elements inside', async ({ page }) => { at /home/runner/work/blocksuite/blocksuite/tests/edgeless/clipboard.spec.ts:100:30
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)
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)
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
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 (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 (4)
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)
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 (14)
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)
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 (9)
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 (13)
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 (15)
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 (12)
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 (5)
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 (10)
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 (11)
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 (7)
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 (6)
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 (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
🎭 Playwright Run Summary
1 flaky slash-menu.spec.ts:376:3 › slash menu should show and hide correctly › should open and close menu when using left right arrow, Enter, Esc keys 3 skipped 41 passed (43.1s)
🎭 Playwright Run Summary
1 flaky code/copy-paste.spec.ts:66:1 › drag copy paste ───────────────────────────────────────────────── 1 skipped 44 passed (45.1s)
🎭 Playwright Run Summary
4 skipped 42 passed (45.7s)
🎭 Playwright Run Summary
45 passed (49.1s)
🎭 Playwright Run Summary
46 passed (52.9s)
🎭 Playwright Run Summary
45 passed (49.6s)
🎭 Playwright Run Summary
46 passed (54.0s)
🎭 Playwright Run Summary
45 passed (50.3s)
🎭 Playwright Run Summary
1 flaky hotkey/multiline.spec.ts:100:1 › should cut work multiple line ───────────────────────────────── 44 passed (52.0s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:289:1 › cursor move to up and down with children block ──────────────── 44 passed (57.1s)
🎭 Playwright Run Summary
10 skipped 36 passed (1.1m)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
2 skipped 43 passed (53.8s)
🎭 Playwright Run Summary
2 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── format-bar.spec.ts:237:1 › should format quick bar be able to change background color ────────── 2 skipped 41 passed (1.3m)
🎭 Playwright Run Summary
46 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/paste-block.spec.ts:67:3 › pasting blocks › pasting a edgeless block ────────────────── 45 passed (1.3m)
🎭 Playwright Run Summary
1 skipped 45 passed (1.4m)
🎭 Playwright Run Summary
1 skipped 45 passed (1.5m)
🎭 Playwright Run Summary
1 flaky edgeless/clipboard.spec.ts:82:3 › frame clipboard › copy and paste frame with shape elements inside 45 passed (1.5m)
🎭 Playwright Run Summary
46 passed (1.7m)