chore(page): tweak lang menu styles in code block (#4901) #29
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
test.yaml
on: push
Node.js Environment Compatibility
53s
Unit test
42s
Virgo E2E test
1m 14s
Matrix: Playground E2E test
Annotations
9 errors and 11 notices
image.spec.ts:122:1 › enter shortcut on focusing embed block and its caption:
tests/image.spec.ts#L145
1) image.spec.ts:122:1 › enter shortcut on focusing embed block and its caption ──────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveValue(expected)
Expected string: "abc123"
Received string: "a123"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('.affine-embed-wrapper-caption')
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
- locator resolved to <input value="a123" placeholder="Write a caption" class…/>
- unexpected value "a123"
143 | await caption.click({ position: { x: 0, y: 0 } });
144 | await type(page, 'abc');
> 145 | await expect(caption).toHaveValue('abc123');
| ^
146 | });
147 |
148 | test('popup menu should follow position of image when scrolling', async ({
at /home/runner/work/blocksuite/blocksuite/tests/image.spec.ts:145:25
|
clipboard.spec.ts:1287:1 › paste parent block:
tests/utils/asserts.ts#L173
1) clipboard.spec.ts:1287:1 › paste parent block ─────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"This is parent",
- "This is child 1",
+ "his is child 1",
"This is child 2Thi",
]
at utils/asserts.ts:173
171 | });
172 | }, currentEditorIndex);
> 173 | expect(actualTexts).toEqual(texts);
| ^
174 | }
175 |
176 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:173:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1306:3
|
export.spec.ts:23:1 › export html title:
tests/export.spec.ts#L36
1) export.spec.ts:23:1 › export html title ───────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "<header><h1 class=\"page-title\">this is title</h1></header><div><p></p><p>hello</p><p>world</p></div>"
Received: "<header><h1 class=\"page-title\">this is title</h1></header><div><p></p><p>ello</p><p>world</p></div>"
34 |
35 | const htmlText = await export2Html(page);
> 36 | expect(htmlText).toEqual(
| ^
37 | '<header><h1 class="page-title">this is title</h1></header><div><p></p><p>hello</p><p>world</p></div>'
38 | );
39 | });
at /home/runner/work/blocksuite/blocksuite/tests/export.spec.ts:36:20
|
edgeless/frame.spec.ts:87:3 › frame › enter unmount frame editor:
http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/global/src/utils/assert.ts#L1281
1) edgeless/frame.spec.ts:87:3 › frame › enter unmount frame editor ──────────────────────────────
Error: Uncaught exception: "Error: Cannot find virgo element in block 0}"
Error: Cannot find virgo element in block 0}
at assertExists (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/global/src/utils/assert.ts:1281:11)
at RangeManager._calculateVirgo (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3996:5)
at RangeManager.pointToRange (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3970:52)
at RangeManager.syncTextSelectionToRange (http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3784:56)
at http://localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-synchronizer.ts:2322:28
at assertExists (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/global/src/utils/assert.ts:1281:11)
at RangeManager._calculateVirgo (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3996:5)
at RangeManager.pointToRange (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3970:52)
at RangeManager.syncTextSelectionToRange (/home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-manager.ts:3784:56)
at /home/runner/work/blocksuite/blocksuite/http:/localhost:5173/@fs/home/runner/work/blocksuite/blocksuite/packages/lit/src/utils/range-synchronizer.ts:2322:28
at Page.<anonymous> (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:216:11)
|
edgeless/note.spec.ts:302:1 › drag handle should work across multiple notes:
tests/utils/asserts.ts#L173
2) edgeless/note.spec.ts:302:1 › drag handle should work across multiple notes ───────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"456",
"789",
- "000",
+ "00",
"123",
]
at utils/asserts.ts:173
171 | });
172 | }, currentEditorIndex);
> 173 | expect(actualTexts).toEqual(texts);
| ^
174 | }
175 |
176 | export async function assertEdgelessCanvasText(page: Page, text: string) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:173:23)
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note.spec.ts:322:3
|
paragraph.spec.ts:140:3 › backspace on line start of the first block (with surface):
tests/utils/asserts.ts#L277
1) paragraph.spec.ts:140:3 › backspace on line start of the first block (with surface) ───────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
- "index": 0,
+ "index": 1,
"length": 0,
}
at utils/asserts.ts:277
275 | [richTextIndex, currentEditorIndex]
276 | );
> 277 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
278 | }
279 |
280 | export async function assertNativeSelectionRangeCount(
at assertRichTextVRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:277:18)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:156:5
|
database/column.spec.ts:305:3 › switch column type › switch to checkbox:
tests/database/column.spec.ts#L1
1) database/column.spec.ts:305:3 › switch column type › switch to checkbox ───────────────────────
Test timeout of 30000ms exceeded.
|
database/column.spec.ts:305:3 › switch column type › switch to checkbox:
tests/utils/actions/misc.ts#L503
1) database/column.spec.ts:305:3 › switch column type › switch to checkbox ───────────────────────
Error: locator.click: Target closed
=========================== logs ===========================
waiting for locator('editor-container').first().locator('.affine-database-block-row').last().locator('.database-cell').nth(1)
locator resolved to <affine-database-cell-container data-row-id="6" data-row-index="0" data-column-i…>…</affine-database-cell-container>
attempting click action
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
============================================================
at utils/actions/misc.ts:503
501 | const lastRow = editor.locator('.affine-database-block-row').last();
502 | const cell = lastRow.locator('.database-cell').nth(index + 1);
> 503 | await cell.click();
| ^
504 | await waitNextFrame(page);
505 | await type(page, data);
506 | await pressEnter(page);
at initDatabaseDynamicRowWithData (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/misc.ts:503:14)
at /home/runner/work/blocksuite/blocksuite/tests/database/column.spec.ts:310:5
|
database/column.spec.ts:305:3 › switch column type › switch to checkbox:
tests/database/column.spec.ts#L1
1) database/column.spec.ts:305:3 › switch column type › switch to checkbox ───────────────────────
Pending operations:
- locator.click at tests/utils/actions/misc.ts:503:14
|
🎭 Playwright Run Summary
12 passed (37.2s)
|
🎭 Playwright Run Summary
61 passed (5.4m)
|
🎭 Playwright Run Summary
1 flaky
image.spec.ts:122:1 › enter shortcut on focusing embed block and its caption ───────────────────
3 skipped
56 passed (5.8m)
|
🎭 Playwright Run Summary
1 skipped
59 passed (6.1m)
|
🎭 Playwright Run Summary
1 skipped
60 passed (7.0m)
|
🎭 Playwright Run Summary
1 flaky
clipboard.spec.ts:1287:1 › paste parent block ──────────────────────────────────────────────────
1 skipped
59 passed (6.8m)
|
🎭 Playwright Run Summary
1 flaky
export.spec.ts:23:1 › export html title ────────────────────────────────────────────────────────
2 skipped
58 passed (6.9m)
|
🎭 Playwright Run Summary
60 passed (7.3m)
|
🎭 Playwright Run Summary
2 flaky
edgeless/frame.spec.ts:87:3 › frame › enter unmount frame editor ───────────────────────────────
edgeless/note.spec.ts:302:1 › drag handle should work across multiple notes ────────────────────
1 skipped
58 passed (8.0m)
|
🎭 Playwright Run Summary
1 flaky
paragraph.spec.ts:140:3 › backspace on line start of the first block (with surface) ────────────
59 passed (7.7m)
|
🎭 Playwright Run Summary
1 flaky
database/column.spec.ts:305:3 › switch column type › switch to checkbox ────────────────────────
60 passed (9.0m)
|