Skip to content

feat(edgeless): store real color values in edgeless #9122

feat(edgeless): store real color values in edgeless

feat(edgeless): store real color values in edgeless #9122

Triggered via pull request December 22, 2024 15:52
Status Failure
Total duration 4m 6s
Artifacts 5

test.yml

on: pull_request
Install Dependencies
47s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
1s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

48 errors, 44 warnings, and 20 notices
Build
Process completed with exit code 1.
clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list: tests/utils/asserts.ts#L209
1) clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ──────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "123", - "456aaa", + "aaa123", + "456", "bbb", ] at utils/asserts.ts:209 207 | }); 208 | }, currentEditorIndex); > 209 | expect(actualTexts).toEqual(texts); | ^ 210 | } 211 | 212 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:209:23) at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:343:3
attachment.spec.ts:710:1 › cancel file picker with input element resolves: tests/attachment.spec.ts#L730
1) attachment.spec.ts:710:1 › cancel file picker with input element resolves ───────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 728 | await expect(slashMenu).toBeVisible(); 729 | > 730 | const fileChooser = page.waitForEvent('filechooser'); | ^ 731 | await pressEnter(page); 732 | const inputFile = page.locator("input[type='file']"); 733 | await expect(inputFile).toHaveCount(1); at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:730:28
inline/inline-editor.spec.ts:17:1 › basic input: tests/inline/inline-editor.spec.ts#L39
1) inline/inline-editor.spec.ts:17:1 › basic input ─────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "​" Received: "abcd😃" 37 | await editorAUndo.click(); 38 | > 39 | expect(await editorA.innerText()).toBe(ZERO_WIDTH_SPACE); | ^ 40 | expect(await editorB.innerText()).toBe(ZERO_WIDTH_SPACE); 41 | 42 | await editorARedo.click(); at /home/runner/work/blocksuite/blocksuite/tests/inline/inline-editor.spec.ts:39:37
latex/inline.spec.ts:94:1 › update inline latex by clicking the node: tests/latex/inline.spec.ts#L126
2) latex/inline.spec.ts:94:1 › update inline latex by clicking the node ────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 7 + Received + 1 - <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\def\arraystretch{1.5} - \begin{array}{c:c:c} - a &amp; b &amp; c \\ \\ hline - d &amp; e &amp; f \\ - \hdashline - g &amp; h &amp; i - \end{array}</annotation></semantics></math> + <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>E</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">E=mc^2</annotation></semantics></math> 124 | await pressShiftEnter(page); 125 | await type(page, String.raw`\end{array}`); > 126 | expect(await latexElement.locator('.katex').innerHTML()).toBe( | ^ 127 | '<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.66em" columnalign="center center center" columnlines="dashed dashed" columnspacing="1em" rowlines="none none dashed"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>a</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>b</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>c</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>h</mi><mi>l</mi><mi>i</mi><mi>n</mi><mi>e</mi><mi>d</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>e</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>f</mi></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>g</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>h</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mi>i</mi></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\\def\\arraystretch{1.5}\n\\begin{array}{c:c:c}\na &amp; b &amp; c \\\\ \\\\ hline\nd &amp; e &amp; f \\\\\n\\hdashline\ng &amp; h &amp; i\n\\end{array}</annotation></semantics></math>' 128 | ); 129 | at /home/runner/work/blocksuite/blocksuite/tests/latex/inline.spec.ts:126:60
edgeless/note/note.spec.ts:299:1 › change note color: tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "#cdcdcd" Received: "#c9f8c1" at utils/asserts.ts:1086 1084 | }); 1085 | > 1086 | expect(toHex(backgroundColor)).toEqual(color); | ^ 1087 | } 1088 | 1089 | function toHex(color: string) { at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:34) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:314:3
edgeless/note/note.spec.ts:299:1 › change note color: tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "#cdcdcd" Received: "#c9f8c1" at utils/asserts.ts:1086 1084 | }); 1085 | > 1086 | expect(toHex(backgroundColor)).toEqual(color); | ^ 1087 | } 1088 | 1089 | function toHex(color: string) { at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:34) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:314:3
edgeless/note/note.spec.ts:299:1 › change note color: tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "#cdcdcd" Received: "#c9f8c1" at utils/asserts.ts:1086 1084 | }); 1085 | > 1086 | expect(toHex(backgroundColor)).toEqual(color); | ^ 1087 | } 1088 | 1089 | function toHex(color: string) { at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:34) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:314:3
edgeless/note/note.spec.ts:299:1 › change note color: tests/utils/asserts.ts#L1086
1) edgeless/note/note.spec.ts:299:1 › change note color ────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality Expected: "#cdcdcd" Received: "#c9f8c1" at utils/asserts.ts:1086 1084 | }); 1085 | > 1086 | expect(toHex(backgroundColor)).toEqual(color); | ^ 1087 | } 1088 | 1089 | function toHex(color: string) { at assertEdgelessNoteBackground (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1086:34) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:314:3
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size: tests/utils/asserts.ts#L888
2) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ─────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 192 Received: 92 Expected precision: 0 Expected difference: < 0.5 Received difference: 100 at utils/asserts.ts:888 886 | expect(a.y).toBeCloseTo(b.y, 0); 887 | expect(a.w).toBeCloseTo(b.w, 0); > 888 | expect(a.h).toBeCloseTo(b.h, 0); | ^ 889 | } 890 | 891 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) { at assertRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:888:15) at assertNoteRectEqual (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:881:3) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/resize.spec.ts:188:3
E2E Test (10)
Process completed with exit code 1.
hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor: tests/utils/asserts.ts#L331
1) hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ─────── Error: expect(received).toEqual(expected) // deep equality Expected: {"index": 3, "length": 0} Received: null at utils/asserts.ts:331 329 | [richTextIndex, currentEditorIndex] 330 | ); > 331 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength }); | ^ 332 | } 333 | 334 | export async function assertNativeSelectionRangeCount( at assertRichTextInlineRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:331:18) at /home/runner/work/blocksuite/blocksuite/tests/hotkey/hotkey.spec.ts:453:5
edgeless/shape.spec.ts:184:1 › change shape stroke color: tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
edgeless/shape.spec.ts:184:1 › change shape stroke color: tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
edgeless/shape.spec.ts:184:1 › change shape stroke color: tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
edgeless/shape.spec.ts:184:1 › change shape stroke color: tests/utils/asserts.ts#L1120
1) edgeless/shape.spec.ts:184:1 › change shape stroke color ────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:203:3
edgeless/shape.spec.ts:542:1 › change shape style: tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ───────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
edgeless/shape.spec.ts:542:1 › change shape style: tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ───────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
edgeless/shape.spec.ts:542:1 › change shape style: tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ───────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
edgeless/shape.spec.ts:542:1 › change shape style: tests/utils/asserts.ts#L1120
2) edgeless/shape.spec.ts:542:1 › change shape style ───────────────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: "" at utils/asserts.ts:1120 1118 | ) { 1119 | const themeColor = await getCurrentThemeCSSPropertyValue(page, edgelessColor); > 1120 | expect(themeColor).toBeTruthy(); | ^ 1121 | const edgelessHexColor = toHex(themeColor); 1122 | 1123 | assertSameColor(hexColor, edgelessHexColor as `#${string}`); at assertEdgelessColorSameWithHexColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1120:22) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shape.spec.ts:563:3
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L369
3) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-slide-menu edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 20ms - waiting for element to be visible, enabled and stable - element is not stable - retrying click action - waiting 100ms - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:369 367 | .locator('edgeless-slide-menu edgeless-tool-icon-button') 368 | .filter({ hasText: shape }); > 369 | await squareShapeButton.click(); | ^ 370 | break; 371 | } 372 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:369:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
E2E Test (12)
Process completed with exit code 1.
edgeless/presentation.spec.ts:137:3 › presentation › should be able to adjust order of presentation in frame panel: tests/edgeless/presentation.spec.ts#L216
1) edgeless/presentation.spec.ts:137:3 › presentation › should be able to adjust order of presentation in frame panel Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('.edgeless-frame-navigator-title') - Expected string - 1 + Received string + 3 - Frame 2 + + Frame 3 + Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('.edgeless-frame-navigator-title') 9 × locator resolved to <span class="edgeless-frame-navigator-title">…</span> - unexpected value " Frame 3 " 214 | await expect(currentFrame).toHaveText('Frame 1'); 215 | await nextButton.click(); > 216 | await expect(currentFrame).toHaveText('Frame 2'); | ^ 217 | }); 218 | 219 | test('duplicate frames should keep the presentation orders', async ({ at /home/runner/work/blocksuite/blocksuite/tests/edgeless/presentation.spec.ts:216:32
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block: tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371: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,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "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": [] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#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/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block/min-width-limit-for-embed-block-init-actual.json 377 | await waitNextFrame(page); 378 | > 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 380 | `${testInfo.title}_init.json` 381 | ); 382 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block: tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371: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,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "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": [] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#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/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry1/min-width-limit-for-embed-block-init-actual.json 377 | await waitNextFrame(page); 378 | > 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 380 | `${testInfo.title}_init.json` 381 | ); 382 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block: tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block ── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "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": [] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#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/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry2/min-width-limit-for-embed-block-init-actual.json 377 | await waitNextFrame(page); 378 | > 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 380 | `${testInfo.title}_init.json` 381 | ); 382 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block: tests/edgeless/edgeless-text.spec.ts#L379
1) edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block ── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── 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,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "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": [] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,92]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#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/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/min-width-limit-for-embed-block-init.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-edg-a6ff1-width-limit-for-embed-block-retry3/min-width-limit-for-embed-block-init-actual.json 377 | await waitNextFrame(page); 378 | > 379 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 380 | `${testInfo.title}_init.json` 381 | ); 382 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:379:47
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist: tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist 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": "3", "flavour": "affine:edgeless-text", "version": 1, "props": { "xywh": "[-25,-25,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "fontFamily": "blocksuite:surface:Inter", "fontStyle": "normal", "fontWeight": "400", "textAlign": "left", "scale": 1, "rotate": 0, "hasMaxWidth": true }, "children": [ { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "aaa" } ] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,48]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#ffffff" }, "index": "a0", "lockedBySelf": false, "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json 578 | await switchEditorMode(page); 579 | > 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 581 | `${testInfo.title}_note_empty.json` 582 | ); 583 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist: tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist 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": "3", "flavour": "affine:edgeless-text", "version": 1, "props": { "xywh": "[-25,-25,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "fontFamily": "blocksuite:surface:Inter", "fontStyle": "normal", "fontWeight": "400", "textAlign": "left", "scale": 1, "rotate": 0, "hasMaxWidth": true }, "children": [ { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "aaa" } ] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,48]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#ffffff" }, "index": "a0", "lockedBySelf": false, "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry1/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json 578 | await switchEditorMode(page); 579 | > 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 581 | `${testInfo.title}_note_empty.json` 582 | ); 583 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist: tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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": "3", "flavour": "affine:edgeless-text", "version": 1, "props": { "xywh": "[-25,-25,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "fontFamily": "blocksuite:surface:Inter", "fontStyle": "normal", "fontWeight": "400", "textAlign": "left", "scale": 1, "rotate": 0, "hasMaxWidth": true }, "children": [ { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "aaa" } ] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,48]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#ffffff" }, "index": "a0", "lockedBySelf": false, "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry2/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json 578 | await switchEditorMode(page); 579 | > 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 581 | `${testInfo.title}_note_empty.json` 582 | ); 583 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist: tests/edgeless/edgeless-text.spec.ts#L580
2) edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── 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": "3", "flavour": "affine:edgeless-text", "version": 1, "props": { "xywh": "[-25,-25,50,26]", "index": "a1", "lockedBySelf": false, "color": "--a#84cffine-v2-edgeless-palette-medium-blueMediumf", "fontFamily": "blocksuite:surface:Inter", "fontStyle": "normal", "fontWeight": "400", "textAlign": "left", "scale": 1, "rotate": 0, "hasMaxWidth": true }, "children": [ { "type": "block", "id": "4", "flavour": "affine:paragraph", "version": 1, "props": { "type": "text", "text": { "$blocksuite:internal:text$": true, "delta": [ { "insert": "aaa" } ] }, "collapsed": false }, "children": [] } ] } ] }, { "type": "block", "id": "2", "flavour": "affine:note", "version": 1, "props": { "xywh": "[0,0,498,48]", "background": { "--daffrk": "#000000", "line-v2-edgeless-note-white": "#ffffff" }, "index": "a0", "lockedBySelf": false, "hidden": false, "displayMode": "both", "edgeless": { "style": { "borderRadius": 8, "borderSize": 4, "borderStyle": "none", "shadowType": "--affine-note-shadow-box" } } }, "children": [] } ] } Expected: /home/runner/work/blocksuite/blocksuite/tests/snapshots/edgeless/edgeless-text.spec.ts/press-backspace-at-the-start-of-first-line-when-edgeless-text-exist-note-empty.json Received: /home/runner/work/blocksuite/blocksuite/tests/test-results/edgeless-edgeless-text-pre-86361-ne-when-edgeless-text-exist-retry3/press-backspace-at-the-sta-93c64--text-exist-note-empty-actual.json 578 | await switchEditorMode(page); 579 | > 580 | expect(await getPageSnapshot(page, true)).toMatchSnapshot( | ^ 581 | `${testInfo.title}_note_empty.json` 582 | ); 583 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/edgeless-text.spec.ts:580:45
E2E Test (7)
Process completed with exit code 1.
edgeless/brush.spec.ts:77:1 › add brush element with color: tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ──────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
edgeless/brush.spec.ts:77:1 › add brush element with color: tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ──────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
edgeless/brush.spec.ts:77:1 › add brush element with color: tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ──────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
edgeless/brush.spec.ts:77:1 › add brush element with color: tests/utils/actions/edgeless.ts#L654
1) edgeless/brush.spec.ts:77:1 › add brush element with color ──────────────────────────────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:83:9
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush: tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush: tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush: tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush: tests/utils/actions/edgeless.ts#L654
2) edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ────────── Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:103:9
edgeless/brush.spec.ts:121:1 › add brush element with different size: tests/utils/actions/edgeless.ts#L654
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:128:9
edgeless/brush.spec.ts:121:1 › add brush element with different size: tests/utils/actions/edgeless.ts#L654
3) edgeless/brush.spec.ts:121:1 › add brush element with different size ────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-brush-menu').locator('edgeless-color-panel').locator('.color-unit[aria-label="HeavyBlue"]') at utils/actions/edgeless.ts:654 652 | .locator('edgeless-color-panel') 653 | .locator(`.color-unit[aria-label="${color}"]`); > 654 | await colorButton.click(); | ^ 655 | } 656 | 657 | export async function selectBrushSize(page: Page, size: string) { at selectBrushColor (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:654:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/brush.spec.ts:128:9
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L1352
1) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Error: expect(received).toBe(expected) // Object.is equality Expected: "#fb7081" Received: "rgb(251, 112, 129)" at utils/asserts.ts:1352 1350 | ); 1351 | > 1352 | expect(realColor).toBe(color); | ^ 1353 | } 1354 | at assertConnectorStrokeColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1352:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:178:7
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L1352
1) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "#fb7081" Received: "rgb(251, 112, 129)" at utils/asserts.ts:1352 1350 | ); 1351 | > 1352 | expect(realColor).toBe(color); | ^ 1353 | } 1354 | at assertConnectorStrokeColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1352:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:178:7
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L1352
1) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "#fb7081" Received: "rgb(251, 112, 129)" at utils/asserts.ts:1352 1350 | ); 1351 | > 1352 | expect(realColor).toBe(color); | ^ 1353 | } 1354 | at assertConnectorStrokeColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1352:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:178:7
edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note: tests/utils/asserts.ts#L1352
1) edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: "#fb7081" Received: "rgb(251, 112, 129)" at utils/asserts.ts:1352 1350 | ); 1351 | > 1352 | expect(realColor).toBe(color); | ^ 1353 | } 1354 | at assertConnectorStrokeColor (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:1352:21) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/auto-complete.spec.ts:178:7
E2E Test (5)
Process completed with exit code 1.
Build & Test
Process completed with exit code 1.
Install Dependencies
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (17)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (13)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (13)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (15)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (15)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (16)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (10)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (4)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (14)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (14)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Unit Test (1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (12)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (9)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (9)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Unit Test (4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (8)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (11)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (11)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (7)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (6)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
E2E Test (5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build & Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
49 passed (43.5s)
🎭 Playwright Run Summary
1 flaky clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ───────────────────────── 1 skipped 47 passed (41.7s)
🎭 Playwright Run Summary
3 skipped 46 passed (41.3s)
🎭 Playwright Run Summary
4 skipped 45 passed (50.3s)
🎭 Playwright Run Summary
49 passed (50.9s)
🎭 Playwright Run Summary
1 skipped 48 passed (52.0s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:710:1 › cancel file picker with input element resolves ────────────────────── 2 skipped 46 passed (50.7s)
🎭 Playwright Run Summary
2 flaky inline/inline-editor.spec.ts:17:1 › basic input ──────────────────────────────────────────────── latex/inline.spec.ts:94:1 › update inline latex by clicking the node ─────────────────────────── 1 skipped 46 passed (53.0s)
🎭 Playwright Run Summary
2 skipped 47 passed (49.7s)
🎭 Playwright Run Summary
49 passed (52.3s)
🎭 Playwright Run Summary
1 failed edgeless/note/note.spec.ts:299:1 › change note color ─────────────────────────────────────────── 1 flaky edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ──────────────── 2 skipped 45 passed (1.1m)
🎭 Playwright Run Summary
49 passed (57.9s)
🎭 Playwright Run Summary
1 flaky hotkey/hotkey.spec.ts:437:3 › keyboard operation to move block up or down › keep cursor ──────── 48 passed (1.1m)
🎭 Playwright Run Summary
2 failed edgeless/shape.spec.ts:184:1 › change shape stroke color ─────────────────────────────────────── edgeless/shape.spec.ts:542:1 › change shape style ────────────────────────────────────────────── 1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 3 skipped 43 passed (1.5m)
🎭 Playwright Run Summary
10 skipped 39 passed (1.4m)
🎭 Playwright Run Summary
49 passed (1.5m)
🎭 Playwright Run Summary
1 flaky edgeless/presentation.spec.ts:137:3 › presentation › should be able to adjust order of presentation in frame panel 1 skipped 47 passed (1.6m)
🎭 Playwright Run Summary
2 failed edgeless/edgeless-text.spec.ts:371:3 › edgeless text block › min width limit for embed block ─── edgeless/edgeless-text.spec.ts:547:1 › press backspace at the start of first line when edgeless text exist 1 skipped 46 passed (1.7m)
🎭 Playwright Run Summary
3 failed edgeless/brush.spec.ts:77:1 › add brush element with color ───────────────────────────────────── edgeless/brush.spec.ts:94:1 › keep same color when mouse mode switched back to brush ─────────── edgeless/brush.spec.ts:121:1 › add brush element with different size ─────────────────────────── 46 passed (1.8m)
🎭 Playwright Run Summary
1 failed edgeless/auto-complete.spec.ts:133:5 › auto-complete › drag on auto-complete button › drag on right auto-complete button to add note 6 skipped 42 passed (1.8m)

Artifacts

Produced during runtime
Name Size
test-results-e2e-10 Expired
8.69 MB
test-results-e2e-12 Expired
17.2 MB
test-results-e2e-5 Expired
6.07 MB
test-results-e2e-6 Expired
10.7 MB
test-results-e2e-7 Expired
6.39 MB