perf(editor): reduce frequency of native selection sync #21798
Annotations
10 errors, 1 warning, and 1 notice
blocksuite/tests-legacy/utils/asserts.ts#L288
1) selection/native.spec.ts:150:1 › native range delete by forwardDelete ─────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 3
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 3 elements
- unexpected value "3"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:165:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
1) selection/native.spec.ts:150:1 › native range delete by forwardDelete ─────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 3
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 3 elements
- unexpected value "3"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:165:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
1) selection/native.spec.ts:150:1 › native range delete by forwardDelete ─────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 3
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 3 elements
- unexpected value "3"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:165:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
1) selection/native.spec.ts:150:1 › native range delete by forwardDelete ─────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 3
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 3 elements
- unexpected value "3"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:165:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
2) selection/native.spec.ts:176:1 › native range input ───────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:192:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
2) selection/native.spec.ts:176:1 › native range input ───────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:192:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
2) selection/native.spec.ts:176:1 › native range input ───────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:192:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
2) selection/native.spec.ts:176:1 › native range input ───────────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:192:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
3) selection/native.spec.ts:196:1 › native range selection backwards ─────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:211:9
|
blocksuite/tests-legacy/utils/asserts.ts#L288
3) selection/native.spec.ts:196:1 › native range selection backwards ─────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: locator('affine-paragraph')
Expected: 1
Received: 2
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('affine-paragraph')
9 × locator resolved to 2 elements
- unexpected value "2"
at utils/asserts.ts:288
286 | count: number
287 | ) {
> 288 | await expect(page.locator(`affine-${flavour}`)).toHaveCount(count);
| ^
289 | }
290 | export async function assertRowCount(page: Page, count: number) {
291 | await expect(page.locator('.affine-database-block-row')).toHaveCount(count);
at assertBlockCount (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:288:51)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:211:9
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
53 failed
selection/native.spec.ts:150:1 › native range delete by forwardDelete ──────────────────────────
selection/native.spec.ts:176:1 › native range input ────────────────────────────────────────────
selection/native.spec.ts:196:1 › native range selection backwards ──────────────────────────────
selection/native.spec.ts:223:1 › native range selection backwards by forwardDelete ─────────────
selection/native.spec.ts:266:1 › cursor move to up and down with children block ────────────────
selection/native.spec.ts:302:1 › cursor move left and right ────────────────────────────────────
selection/native.spec.ts:387:1 › select all text with dragging and delete ──────────────────────
selection/native.spec.ts:402:1 › select all text with dragging and delete by forwardDelete ─────
selection/native.spec.ts:419:1 › select all text with keyboard delete ──────────────────────────
selection/native.spec.ts:440:1 › select text leaving a few words in the last line and delete ───
selection/native.spec.ts:458:1 › select text leaving a few words in the last line and delete by forwardDelete
selection/native.spec.ts:662:1 › select text in the same line with dragging rightward and press enter create block
selection/native.spec.ts:687:1 › drag to select tagged text, and copy ──────────────────────────
selection/native.spec.ts:757:1 › Delete the blank line between two dividers ────────────────────
selection/native.spec.ts:1067:1 › should select texts on dragging around the page ──────────────
selection/native.spec.ts:1102:1 › indent native multi-selection block ──────────────────────────
selection/native.spec.ts:1196:1 › should keep native range selection when scrolling backward with the scroll wheel
selection/native.spec.ts:1268:1 › should keep native range selection when scrolling forward with the scroll wheel
selection/native.spec.ts:1386:1 › should select with shift-click ───────────────────────────────
selection/native.spec.ts:1400:1 › should collapse to end when press arrow-right on multi-line selection
selection/native.spec.ts:1414:1 › should collapse to start when press arrow-left on multi-line selection
selection/native.spec.ts:1467:1 › should not scroll page when mouse is click down ──────────────
selection/native.spec.ts:1605:1 › Use arrow up and down to select two types of block ───────────
selection/native.spec.ts:1718:1 › abnormal cursor jumping ──────────────────────────────────────
selection/native.spec.ts:1749:1 › unexpected scroll when clicking padding area ─────────────────
slash-menu.spec.ts:45:3 › slash menu should show and hide correctly › slash menu should show when user input '/'
slash-menu.spec.ts:64:3 › slash menu should show and hide correctly › slash menu should hide after click away
slash-menu.spec.ts:81:3 › slash menu should show and hide correctly › slash menu should hide after input whitespace
slash-menu.spec.ts:101:3 › slash menu should show and hide correctly › delete the slash symbol should close the slash menu
slash-menu.spec.ts:117:3 › slash menu should show and hide correctly › typing something that does not match should close the slash menu
slash-menu.spec.ts:139:3 › slash menu should show and hide correctly › pressing the slash key again should close the old slash menu and open new one
slash-menu.spec.ts:154:3 › slash menu should show and hide correctly › should position slash menu correctly
slash-menu.spec.ts:171:3 › slash menu should show and hide correctly › should move up down with arrow key
slash-menu.spec.ts:205:3 › slash menu should show and hide correctly › slash menu hover state ──
slash-menu.spec.ts:233:3 › slash menu should show and hide correctly › should open tooltip when hover on item
slash-menu.spec.ts:264:3 › slash menu should show and hide correctly › press tab should move up and down
slash-menu.spec.ts:298:3 › slash menu should show and hide correctly › should move up down with ctrl/cmd+n and ctrl/cmd+p
slash-menu.spe
|
This job failed
Loading