fix(blocks): focus ai input after position updated (#8981) #8842
Annotations
2 errors, 2 warnings, and 1 notice
Run playwright test:
tests/utils/asserts.ts#L331
1) hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ───────
Error: expect(received).toEqual(expected) // deep equality
Expected: {"index": 3, "length": 0}
Received: null
at utils/asserts.ts:331
329 | [richTextIndex, currentEditorIndex]
330 | );
> 331 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
332 | }
333 |
334 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:331:18)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:453:5
|
Run playwright test:
tests/hotkey/multiline.spec.ts#L110
2) hotkey/multiline.spec.ts:100:1 › should cut work multiple line ────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
{
"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",
"lockedBySelf": false,
"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
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Upload E2E test coverage results
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
Run playwright test
2 flaky
hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ────────
hotkey/multiline.spec.ts:100:1 › should cut work multiple line ─────────────────────────────────
47 passed (1.0m)
|
Loading