perf(editor): reduce frequency of native selection sync #21803
Annotations
10 errors, 1 warning, and 1 notice
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L452
1) edgeless/edgeless-text.spec.ts:66:3 › edgeless text block › add text block in default mode ────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
"5",
+ "6",
+ "7",
]
at utils/asserts.ts:452
450 | { blockId }
451 | );
> 452 | expect(actual).toEqual(ids);
| ^
453 | }
454 |
455 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:452:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:94:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L452
1) edgeless/edgeless-text.spec.ts:66:3 › edgeless text block › add text block in default mode ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
"5",
+ "6",
+ "7",
]
at utils/asserts.ts:452
450 | { blockId }
451 | );
> 452 | expect(actual).toEqual(ids);
| ^
453 | }
454 |
455 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:452:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:94:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L452
1) edgeless/edgeless-text.spec.ts:66:3 › edgeless text block › add text block in default mode ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
"5",
+ "6",
+ "7",
]
at utils/asserts.ts:452
450 | { blockId }
451 | );
> 452 | expect(actual).toEqual(ids);
| ^
453 | }
454 |
455 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:452:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:94:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L452
1) edgeless/edgeless-text.spec.ts:66:3 › edgeless text block › add text block in default mode ────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 2
Array [
"5",
+ "6",
+ "7",
]
at utils/asserts.ts:452
450 | { blockId }
451 | );
> 452 | expect(actual).toEqual(ids);
| ^
453 | }
454 |
455 | export async function assertBlockChildrenFlavours(
at assertBlockChildrenIds (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:452:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:94:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L593
2) edgeless/edgeless-text.spec.ts:247:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ab"
Received: "aaaa"
at utils/asserts.ts:593
591 | { id }
592 | );
> 593 | expect(actual).toBe(str);
| ^
594 | }
595 |
596 | export async function assertBlockProps(
at assertBlockTextContent (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:593:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:268:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L593
2) edgeless/edgeless-text.spec.ts:247:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ab"
Received: "aaaa"
at utils/asserts.ts:593
591 | { id }
592 | );
> 593 | expect(actual).toBe(str);
| ^
594 | }
595 |
596 | export async function assertBlockProps(
at assertBlockTextContent (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:593:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:268:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L593
2) edgeless/edgeless-text.spec.ts:247:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ab"
Received: "aaaa"
at utils/asserts.ts:593
591 | { id }
592 | );
> 593 | expect(actual).toBe(str);
| ^
594 | }
595 |
596 | export async function assertBlockProps(
at assertBlockTextContent (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:593:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:268:5
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L593
2) edgeless/edgeless-text.spec.ts:247:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ab"
Received: "aaaa"
at utils/asserts.ts:593
591 | { id }
592 | );
> 593 | expect(actual).toBe(str);
| ^
594 | }
595 |
596 | export async function assertBlockProps(
at assertBlockTextContent (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:593:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts:268:5
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts#L386
3) edgeless/edgeless-text.spec.ts:370:3 › edgeless text block › min width limit for embed block ──
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,88.750,50]",
"index": "a1",
"lockedBySelf": false,
"color": "#84cfff",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": " @",
}
]
},
"collattributepsed": {false
},
"childreference": {[]
},
{
"type": "LinblockedPage",
"id": "6",
"pflageIdvour": "6affine:paragraph",
"version": 1,
}
"props": {
}"type": "text",
"text": {
} "$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"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": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-add-linked-doc.json
Received: /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/test-results/edgeless-edgeless-text-edg-a6ff1-widt
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/edgeless-text.spec.ts#L386
3) edgeless/edgeless-text.spec.ts:370:3 › edgeless text block › min width limit for embed block ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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:surface",
"version": 5,
"props": {
"elements": {}
},
"children": [
{
"type": "block",
"id": "4",
"flavour": "affine:edgeless-text",
"version": 1,
"props": {
"xywh": "[-25,-25,88.750,50]",
"index": "a1",
"lockedBySelf": false,
"color": "#84cfff",
"fontFamily": "blocksuite:surface:Inter",
"fontStyle": "normal",
"fontWeight": "400",
"textAlign": "left",
"scale": 1,
"rotate": 0,
"hasMaxWidth": false
},
"children": [
{
"type": "block",
"id": "5",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": " @",
}
]
},
"collattributepsed": {false
},
"childreference": {[]
},
{
"type": "LinblockedPage",
"id": "6",
"pflageIdvour": "6affine:paragraph",
"version": 1,
}
"props": {
}"type": "text",
"text": {
} "$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
},
{
"type": "block",
"id": "2",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"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": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
]
}
]
}
Expected: /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-add-linked-doc.json
Received: /hom
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright tests
5 failed
edgeless/edgeless-text.spec.ts:66:3 › edgeless text block › add text block in default mode ─────
edgeless/edgeless-text.spec.ts:247:3 › edgeless text block › edgeless text should maintain selection when deleting across multiple lines
edgeless/edgeless-text.spec.ts:370:3 › edgeless text block › min width limit for embed block ───
edgeless/edgeless-text.spec.ts:478:3 › edgeless text block › latex in edgeless text ────────────
edgeless/edgeless-text.spec.ts:546:1 › press backspace at the start of first line when edgeless text exist
1 skipped
93 passed (3.4m)
|
Loading