feat(page): enter key also triggers inline style formatting #13166
Annotations
3 errors and 1 notice
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
|
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
|
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
|
|
The logs for this run have expired and are no longer available.
Loading