feat(blocks): microsheet-block init #7676
test.yml
on: pull_request
Install Dependencies
1m 5s
Build & Test
0s
Annotations
15 errors, 19 warnings, and 20 notices
Build:
packages/blocks/src/cell-block/cell-service.ts#L26
Cannot find name 'selectBlock'.
|
Build
Process completed with exit code 2.
|
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
|
paragraph.spec.ts:83:1 › init paragraph by page title enter in middle:
tests/utils/asserts.ts#L151
1) paragraph.spec.ts:83:1 › init paragraph by page title enter in middle ─────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "he"
Received: "hel"
at utils/asserts.ts:151
149 | const inlineEditor = editor.locator('.doc-title-container').first();
150 | const vText = inlineEditorInnerTextToString(await inlineEditor.innerText());
> 151 | expect(vText).toBe(text);
| ^
152 | }
153 |
154 | export async function assertInlineEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:151:17)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:94:3
|
selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area:
tests/selection/native.spec.ts#L1789
1) selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area ────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('[data-block-id="34"]')
1787 |
1788 | const list = page.locator('[data-block-id="34"]');
> 1789 | const listRect = await list.boundingBox();
| ^
1790 | assertExists(listRect);
1791 | await page.mouse.click(listRect.x - 30, listRect.y + 5);
1792 | const newListRect = await list.boundingBox();
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1789:31
|
selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area:
tests/selection/native.spec.ts#L1799
1) selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('affine-database')
1797 | await type(page, '/table\n');
1798 | const database = page.locator('affine-database');
> 1799 | const databaseRect = await database.boundingBox();
| ^
1800 | assertExists(databaseRect);
1801 | await page.mouse.click(
1802 | databaseRect.x + databaseRect.width + 10,
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1799:39
|
selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area:
tests/selection/native.spec.ts#L1799
1) selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('affine-database')
1797 | await type(page, '/table\n');
1798 | const database = page.locator('affine-database');
> 1799 | const databaseRect = await database.boundingBox();
| ^
1800 | assertExists(databaseRect);
1801 | await page.mouse.click(
1802 | databaseRect.x + databaseRect.width + 10,
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1799:39
|
selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area:
tests/selection/native.spec.ts#L1799
1) selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area ────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.boundingBox: Timeout 5000ms exceeded.
Call log:
- waiting for locator('affine-database')
1797 | await type(page, '/table\n');
1798 | const database = page.locator('affine-database');
> 1799 | const databaseRect = await database.boundingBox();
| ^
1800 | assertExists(databaseRect);
1801 | await page.mouse.click(
1802 | databaseRect.x + databaseRect.width + 10,
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:1799:39
|
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
2) 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
|
E2E Test (20)
Process completed with exit code 1.
|
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
|
format-bar.spec.ts:239:1 › should format quick bar be able to change background color:
tests/format-bar.spec.ts#L276
1) format-bar.spec.ts:239:1 › should format quick bar be able to change background color ─────────
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"
274 | );
275 |
> 276 | await expect(highlight.defaultColorBtn).toBeVisible();
| ^
277 | await highlight.defaultColorBtn.click();
278 |
279 | expect(await getPageSnapshot(page, true)).toMatchSnapshot(
at /home/runner/work/blocksuite/blocksuite/tests/format-bar.spec.ts:276:43
|
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
|
edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes:
tests/edgeless/note/drag-handle.spec.ts#L141
1) edgeless/note/drag-handle.spec.ts:122: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 draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
- locator resolved to <div draggable="true" class="affine-drag-handle-container">…</div>
- unexpected value "visible"
139 | await page.mouse.dblclick(CENTER_X, CENTER_Y - 20);
140 | await dragHandleFromBlockToBlockBottomById(page, '3', '7');
> 141 | await expect(page.locator('.affine-drag-handle-container')).toBeHidden();
| ^
142 | await waitNextFrame(page);
143 | await assertRichTexts(page, ['456', '789', '000', '123']);
144 |
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/drag-handle.spec.ts:141:63
|
Build & Test
Process completed 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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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
code/copy-paste.spec.ts:66:1 › drag copy paste ─────────────────────────────────────────────────
1 skipped
46 passed (49.7s)
|
🎭 Playwright Run Summary
1 skipped
46 passed (48.6s)
|
🎭 Playwright Run Summary
47 passed (56.9s)
|
🎭 Playwright Run Summary
47 passed (59.5s)
|
🎭 Playwright Run Summary
47 passed (53.7s)
|
🎭 Playwright Run Summary
1 flaky
paragraph.spec.ts:83:1 › init paragraph by page title enter in middle ──────────────────────────
46 passed (50.8s)
|
🎭 Playwright Run Summary
2 skipped
46 passed (54.5s)
|
🎭 Playwright Run Summary
1 failed
selection/native.spec.ts:1776:1 › unexpected scroll when clicking padding area ─────────────────
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
42 passed (1.1m)
|
🎭 Playwright Run Summary
1 flaky
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
46 passed (59.3s)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.1m)
|
🎭 Playwright Run Summary
1 flaky
format-bar.spec.ts:239:1 › should format quick bar be able to change background color ──────────
46 passed (1.2m)
|
🎭 Playwright Run Summary
4 skipped
44 passed (56.0s)
|
🎭 Playwright Run Summary
1 skipped
46 passed (59.2s)
|
🎭 Playwright Run Summary
1 flaky
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ──────────────────────────
2 skipped
44 passed (1.2m)
|
🎭 Playwright Run Summary
6 skipped
41 passed (1.4m)
|
🎭 Playwright Run Summary
47 passed (1.3m)
|
🎭 Playwright Run Summary
1 flaky
edgeless/note/drag-handle.spec.ts:122:1 › drag handle should work across multiple notes ────────
10 skipped
36 passed (1.5m)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.6m)
|
🎭 Playwright Run Summary
1 skipped
46 passed (1.6m)
|
🎭 Playwright Run Summary
47 passed (1.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-results-e2e-20
|
6.05 MB |
|