perf(editor): reduce frequency of native selection sync #21798
Annotations
10 errors, 1 warning, and 1 notice
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L326
1) edgeless/note/note.spec.ts:145:1 › edgeless arrow up/down ─────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: {"index": 5, "length": 0}
Received: null
at utils/asserts.ts:326
324 | [richTextIndex, currentEditorIndex]
325 | );
> 326 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
327 | }
328 |
329 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:326:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:162:3
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L326
1) edgeless/note/note.spec.ts:145:1 › edgeless arrow up/down ─────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: {"index": 5, "length": 0}
Received: null
at utils/asserts.ts:326
324 | [richTextIndex, currentEditorIndex]
325 | );
> 326 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
327 | }
328 |
329 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:326:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:162:3
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L326
1) edgeless/note/note.spec.ts:145:1 › edgeless arrow up/down ─────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: {"index": 5, "length": 0}
Received: null
at utils/asserts.ts:326
324 | [richTextIndex, currentEditorIndex]
325 | );
> 326 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
327 | }
328 |
329 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:326:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:162:3
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L326
1) edgeless/note/note.spec.ts:145:1 › edgeless arrow up/down ─────────────────────────────────────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: {"index": 5, "length": 0}
Received: null
at utils/asserts.ts:326
324 | [richTextIndex, currentEditorIndex]
325 | );
> 326 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
327 | }
328 |
329 | export async function assertNativeSelectionRangeCount(
at assertRichTextInlineRange (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:326:18)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:162:3
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/note/note.spec.ts#L233
2) edgeless/note/note.spec.ts:213:1 › format quick bar should show up when double-clicking on text
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget')
231 | await page.waitForTimeout(200);
232 | const formatBar = page.locator('.affine-format-bar-widget');
> 233 | await expect(formatBar).toBeVisible();
| ^
234 | });
235 |
236 | test('when editing text in edgeless, should hide component toolbar', async ({
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:233:27
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/note/note.spec.ts#L233
2) edgeless/note/note.spec.ts:213:1 › format quick bar should show up when double-clicking on text
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget')
231 | await page.waitForTimeout(200);
232 | const formatBar = page.locator('.affine-format-bar-widget');
> 233 | await expect(formatBar).toBeVisible();
| ^
234 | });
235 |
236 | test('when editing text in edgeless, should hide component toolbar', async ({
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:233:27
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/note/note.spec.ts#L233
2) edgeless/note/note.spec.ts:213:1 › format quick bar should show up when double-clicking on text
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget')
231 | await page.waitForTimeout(200);
232 | const formatBar = page.locator('.affine-format-bar-widget');
> 233 | await expect(formatBar).toBeVisible();
| ^
234 | });
235 |
236 | test('when editing text in edgeless, should hide component toolbar', async ({
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:233:27
|
Run playwright tests:
blocksuite/tests-legacy/edgeless/note/note.spec.ts#L233
2) edgeless/note/note.spec.ts:213:1 › format quick bar should show up when double-clicking on text
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('.affine-format-bar-widget')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('.affine-format-bar-widget')
231 | await page.waitForTimeout(200);
232 | const formatBar = page.locator('.affine-format-bar-widget');
> 233 | await expect(formatBar).toBeVisible();
| ^
234 | });
235 |
236 | test('when editing text in edgeless, should hide component toolbar', async ({
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:233:27
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L204
3) edgeless/note/note.spec.ts:321:1 › cursor for active and inactive state ───────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
"hello",
- "",
- "",
+ "
+ ",
]
at utils/asserts.ts:204
202 | });
203 | }, currentEditorIndex);
> 204 | expect(actualTexts).toEqual(texts);
| ^
205 | }
206 |
207 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:204:23)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:328:3
|
Run playwright tests:
blocksuite/tests-legacy/utils/asserts.ts#L204
3) edgeless/note/note.spec.ts:321:1 › cursor for active and inactive state ───────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
"hello",
- "",
- "",
+ "
+ ",
]
at utils/asserts.ts:204
202 | });
203 | }, currentEditorIndex);
> 204 | expect(actualTexts).toEqual(texts);
| ^
205 | }
206 |
207 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:204:23)
at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/note.spec.ts:328:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run playwright tests
4 failed
edgeless/note/note.spec.ts:145:1 › edgeless arrow up/down ──────────────────────────────────────
edgeless/note/note.spec.ts:213:1 › format quick bar should show up when double-clicking on text
edgeless/note/note.spec.ts:321:1 › cursor for active and inactive state ────────────────────────
edgeless/note/note.spec.ts:518:1 › select text cross blocks in edgeless note ───────────────────
12 skipped
83 passed (2.6m)
|
Loading