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