fix(blocks): click blank area will make editor scroll #6450
Annotations
10 errors and 1 notice
Run playwright test:
tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
697 | });
698 |
> 699 | expect(count0).toBe(count1);
| ^
700 | expect(scrollTop0).toBeCloseTo(distance, -0.8);
701 | expect(scrollTop1).toBe(0);
702 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
|
Run playwright test:
tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
697 | });
698 |
> 699 | expect(count0).toBe(count1);
| ^
700 | expect(scrollTop0).toBeCloseTo(distance, -0.8);
701 | expect(scrollTop1).toBe(0);
702 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
|
Run playwright test:
tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
697 | });
698 |
> 699 | expect(count0).toBe(count1);
| ^
700 | expect(scrollTop0).toBeCloseTo(distance, -0.8);
701 | expect(scrollTop1).toBe(0);
702 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
|
Run playwright test:
tests/selection/block.spec.ts#L699
1) selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
697 | });
698 |
> 699 | expect(count0).toBe(count1);
| ^
700 | expect(scrollTop0).toBeCloseTo(distance, -0.8);
701 | expect(scrollTop1).toBe(0);
702 | });
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:699:18
|
Run playwright test:
tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-block-selection').locator('visible=true')
Expected: 3
Received: 5
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-block-selection').locator('visible=true')
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
1422 |
1423 | rects = page.locator('affine-block-selection').locator('visible=true');
> 1424 | await expect(rects).toHaveCount(3);
| ^
1425 | });
1426 |
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
|
Run playwright test:
tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-block-selection').locator('visible=true')
Expected: 3
Received: 5
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-block-selection').locator('visible=true')
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
1422 |
1423 | rects = page.locator('affine-block-selection').locator('visible=true');
> 1424 | await expect(rects).toHaveCount(3);
| ^
1425 | });
1426 |
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
|
Run playwright test:
tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-block-selection').locator('visible=true')
Expected: 3
Received: 5
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-block-selection').locator('visible=true')
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
1422 |
1423 | rects = page.locator('affine-block-selection').locator('visible=true');
> 1424 | await expect(rects).toHaveCount(3);
| ^
1425 | });
1426 |
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
|
Run playwright test:
tests/selection/block.spec.ts#L1424
2) selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-block-selection').locator('visible=true')
Expected: 3
Received: 5
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-block-selection').locator('visible=true')
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
- locator resolved to 5 elements
- unexpected value "5"
1422 |
1423 | rects = page.locator('affine-block-selection').locator('visible=true');
> 1424 | await expect(rects).toHaveCount(3);
| ^
1425 | });
1426 |
at /home/runner/work/blocksuite/blocksuite/tests/selection/block.spec.ts:1424:23
|
Run playwright test:
tests/selection/native.spec.ts#L318
3) 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
|
Run playwright test
Process completed with exit code 1.
|
Run playwright test
2 failed
selection/block.spec.ts:592:1 › should keep selection state when scrolling forward with the scroll wheel
selection/block.spec.ts:1378:1 › scroll should update dragging area and select blocks when dragging
1 flaky
selection/native.spec.ts:289:1 › cursor move to up and down with children block ────────────────
42 passed (1.9m)
|
Loading