fix(blocks): click blank area will make editor scroll #6450
Annotations
10 errors and 1 notice
Run playwright test:
tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"aa",
+ "",
]
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/image/keymap.spec.ts:66:3
|
Run playwright test:
tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"aa",
+ "",
]
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/image/keymap.spec.ts:66:3
|
Run playwright test:
tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"aa",
+ "",
]
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/image/keymap.spec.ts:66:3
|
Run playwright test:
tests/utils/asserts.ts#L205
1) image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"aa",
+ "",
]
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/image/keymap.spec.ts:66:3
|
Run playwright test:
tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"",
"bbaa",
+ "",
]
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/image/keymap.spec.ts:78:3
|
Run playwright test:
tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"",
"bbaa",
+ "",
]
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/image/keymap.spec.ts:78:3
|
Run playwright test:
tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"",
"bbaa",
+ "",
]
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/image/keymap.spec.ts:78:3
|
Run playwright test:
tests/utils/asserts.ts#L205
2) image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
"",
"bbaa",
+ "",
]
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/image/keymap.spec.ts:78:3
|
Run playwright test:
tests/eval at evaluate (:234:30)#L11
3) link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ────────────────
Error: page.evaluate: TypeError: Cannot read properties of undefined (reading 'inlineEditor')
at eval (eval at evaluate (:234:30), <anonymous>:11:31)
at UtilityScript.evaluate (<anonymous>:236:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/blocksuite/blocksuite/tests/eval at evaluate (:234:30), <anonymous>:11:31)
at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:236:17)
at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:1:44)
at getIndexCoordinate (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:1224:28)
at dragBetweenIndices (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:44:28)
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:342:9
|
Run playwright test:
tests/eval at evaluate (:234:30)#L11
3) link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: TypeError: Cannot read properties of undefined (reading 'inlineEditor')
at eval (eval at evaluate (:234:30), <anonymous>:11:31)
at UtilityScript.evaluate (<anonymous>:236:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/blocksuite/blocksuite/tests/eval at evaluate (:234:30), <anonymous>:11:31)
at UtilityScript.evaluate (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:236:17)
at UtilityScript.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/<anonymous>:1:44)
at getIndexCoordinate (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:1224:28)
at dragBetweenIndices (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/drag.ts:44:28)
at /home/runner/work/blocksuite/blocksuite/tests/link.spec.ts:342:9
|
Run playwright test
3 failed
image/keymap.spec.ts:59:1 › press arrow up when image is selected should move to previous paragraph
image/keymap.spec.ts:69:1 › press arrow down when image is selected should move to previous paragraph
link.spec.ts:311:1 › link bar should not be appear when the range is collapsed ─────────────────
2 skipped
40 passed (1.2m)
|
Loading