feat(page): enter key also triggers inline style formatting #13166
test.yaml
on: pull_request
Node.js Environment Compatibility
37s
Unit test
45s
Virgo E2E test
45s
Matrix: Playground E2E test
Annotations
10 errors and 11 notices
paragraph.spec.ts:73:1 › init paragraph by page title enter in middle:
tests/utils/asserts.ts#L134
1) paragraph.spec.ts:73:1 › init paragraph by page title enter in middle ─────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "he"
Received: "hel"
at utils/asserts.ts:134
132 | const vEditor = editor.locator('[data-block-is-title="true"]').first();
133 | const vText = virgoEditorInnerTextToString(await vEditor.innerText());
> 134 | expect(vText).toBe(text);
| ^
135 | }
136 |
137 | export async function assertVEditorDeltas(
at assertTitle (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:134:17)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:84:3
|
paragraph.spec.ts:141:3 › backspace on line start of the first block (with surface):
tests/utils/asserts.ts#L298
2) paragraph.spec.ts:141: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:298
296 | [richTextIndex, currentEditorIndex]
297 | );
> 298 | expect(actual).toEqual({ index: rangeIndex, length: rangeLength });
| ^
299 | }
300 |
301 | export async function assertNativeSelectionRangeCount(
at assertRichTextVRange (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:298:18)
at /home/runner/work/blocksuite/blocksuite/tests/paragraph.spec.ts:158:5
|
clipboard.spec.ts:460:1 › paste a non-nested list to a non-nested list:
tests/clipboard.spec.ts#L496
1) clipboard.spec.ts:460:1 › paste a non-nested list to a non-nested list ────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 6
Received: 5
494 | // aa123a|
495 | await waitNextFrame(page);
> 496 | expect(await getVirgoSelectionIndex(page)).toBe(6);
| ^
497 |
498 | await assertBlockTypes(page, ['bulleted']);
499 | });
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:496:46
|
clipboard.spec.ts:1292:1 › paste parent block:
tests/utils/asserts.ts#L186
1) clipboard.spec.ts:1292:1 › paste parent block ─────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
"This is parent",
- "This is child 1",
- "This is child 2Thi",
+ "his is child 1",
+ "his is child 2his",
]
at utils/asserts.ts:186
184 | });
185 | }, currentEditorIndex);
> 186 | expect(actualTexts).toEqual(texts);
| ^
187 | }
188 |
189 | export async function assertSelectionPath(page: Page, expected: string[]) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:186:23)
at /home/runner/work/blocksuite/blocksuite/tests/clipboard.spec.ts:1311:3
|
database/clipboard.spec.ts:34:3 › copy&paste when editing › should support copy&paste of the title column:
tests/utils/asserts.ts#L186
2) database/clipboard.spec.ts:34:3 › copy&paste when editing › should support copy&paste of the title column
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"Database 1",
- "c123",
+ "3",
]
at utils/asserts.ts:186
184 | });
185 | }, currentEditorIndex);
> 186 | expect(actualTexts).toEqual(texts);
| ^
187 | }
188 |
189 | export async function assertSelectionPath(page: Page, expected: string[]) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:186:23)
at /home/runner/work/blocksuite/blocksuite/tests/database/clipboard.spec.ts:55:5
|
hotkey.spec.ts:816:1 › should cut work single line:
tests/hotkey.spec.ts#L842
1) hotkey.spec.ts:816:1 › should cut work single line ────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "ell"
Received: ""
840 | await undoByKeyboard(page);
841 | const text = await readClipboardText(page);
> 842 | expect(text).toBe('ell');
| ^
843 | await assertStoreMatchJSX(
844 | page,
845 | `
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:842:16
|
hotkey.spec.ts:913:1 › should ctrl+enter create new block:
tests/utils/asserts.ts#L186
2) hotkey.spec.ts:913:1 › should ctrl+enter create new block ─────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "1",
- "23",
+ "12",
+ "3",
]
at utils/asserts.ts:186
184 | });
185 | }, currentEditorIndex);
> 186 | expect(actualTexts).toEqual(texts);
| ^
187 | }
188 |
189 | export async function assertSelectionPath(page: Page, expected: string[]) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:186:23)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:923:3
|
hotkey.spec.ts:913:1 › should ctrl+enter create new block:
tests/utils/asserts.ts#L186
2) hotkey.spec.ts:913:1 › should ctrl+enter create new block ─────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
"1",
- "23",
"",
+ "23",
]
at utils/asserts.ts:186
184 | });
185 | }, currentEditorIndex);
> 186 | expect(actualTexts).toEqual(texts);
| ^
187 | }
188 |
189 | export async function assertSelectionPath(page: Page, expected: string[]) {
at assertRichTexts (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:186:23)
at /home/runner/work/blocksuite/blocksuite/tests/hotkey.spec.ts:925:3
|
selection/native.spec.ts:244:1 › cursor move to up and down with children block:
tests/selection/native.spec.ts#L272
1) selection/native.spec.ts:244:1 › cursor move to up and down with children block ───────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "arrow down test 1"
Received: "arrow down test 2"
270 | const indexTwo = await getVirgoSelectionIndex(page);
271 | const textTwo = await getVirgoSelectionText(page);
> 272 | expect(textTwo).toBe('arrow down test 1');
| ^
273 | expect(indexTwo).toBeGreaterThanOrEqual(12);
274 | expect(indexTwo).toBeLessThanOrEqual(17);
275 | await page.keyboard.press('ArrowDown');
at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:272:19
|
edgeless/basic.spec.ts:201:1 › the tooltip of more button should be hidden when the action menu is shown:
tests/edgeless/basic.spec.ts#L224
1) edgeless/basic.spec.ts:201:1 › the tooltip of more button should be hidden when the action menu is shown
Error: expect.toBeVisible: Error: strict mode violation: locator('.affine-tooltip') resolved to 2 elements:
1) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'Select V' })
2) <div role="tooltip" class="affine-tooltip">…</div> aka getByRole('tooltip', { name: 'More' })
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for locator('.affine-tooltip')
============================================================
222 |
223 | await page.mouse.move(moreButtonBox.x + 10, moreButtonBox.y + 10);
> 224 | await expect(tooltip).toBeVisible();
| ^
225 |
226 | await page.mouse.click(moreButtonBox.x + 10, moreButtonBox.y + 10);
227 | await expect(tooltip).toBeHidden();
at /home/runner/work/blocksuite/blocksuite/tests/edgeless/basic.spec.ts:224:25
|
🎭 Playwright Run Summary
12 passed (20.7s)
|
🎭 Playwright Run Summary
2 flaky
paragraph.spec.ts:73:1 › init paragraph by page title enter in middle ──────────────────────────
paragraph.spec.ts:141:3 › backspace on line start of the first block (with surface) ────────────
2 skipped
61 passed (2.6m)
|
🎭 Playwright Run Summary
1 flaky
clipboard.spec.ts:460:1 › paste a non-nested list to a non-nested list ─────────────────────────
65 passed (2.7m)
|
🎭 Playwright Run Summary
1 skipped
64 passed (2.6m)
|
🎭 Playwright Run Summary
2 flaky
clipboard.spec.ts:1292:1 › paste parent block ──────────────────────────────────────────────────
database/clipboard.spec.ts:34:3 › copy&paste when editing › should support copy&paste of the title column
1 skipped
62 passed (2.7m)
|
🎭 Playwright Run Summary
65 passed (3.7m)
|
🎭 Playwright Run Summary
2 flaky
hotkey.spec.ts:816:1 › should cut work single line ─────────────────────────────────────────────
hotkey.spec.ts:913:1 › should ctrl+enter create new block ──────────────────────────────────────
2 skipped
61 passed (6.1m)
|
🎭 Playwright Run Summary
1 flaky
selection/native.spec.ts:244:1 › cursor move to up and down with children block ────────────────
64 passed (6.5m)
|
🎭 Playwright Run Summary
1 skipped
64 passed (7.7m)
|
🎭 Playwright Run Summary
1 flaky
edgeless/basic.spec.ts:201:1 › the tooltip of more button should be hidden when the action menu is shown
1 skipped
63 passed (8.3m)
|
🎭 Playwright Run Summary
1 skipped
64 passed (8.7m)
|