Skip to content

Fixed error when parsing callout card HTML with missing text node element #23845

Fixed error when parsing callout card HTML with missing text node element

Fixed error when parsing callout card HTML with missing text node element #23845

Triggered via pull request January 3, 2024 09:39
Status Success
Total duration 6m 35s
Artifacts 1

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

1 error, 4 warnings, and 1 notice
[chromium] › cards/callout-card.test.js:328:5 › Callout Card › can undo/redo without losing content: packages/koenig-lexical/test/utils/e2e.js#L101
1) [chromium] › cards/callout-card.test.js:328:5 › Callout Card › can undo/redo without losing content Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 1 @@ -1,9 +1,9 @@ <div data-lexical-decorator="true" contenteditable="false"> <div data-kg-card-editing="false" - data-kg-card-selected="true" + data-kg-card-selected="false" data-kg-card="callout"> <div> <div><button type="button">💡</button></div> <div> <div data-kg="editor"> @@ -18,9 +18,8 @@ </div> </div> </div> </div> <div></div> - <div data-kg-card-toolbar="callout"></div> </div> </div> <p><br /></p> at ../utils/e2e.js:101 99 | ignoreCardCaptionContents 100 | }); > 101 | expect(actual).toEqual(expected); | ^ 102 | } 103 | 104 | export function prettifyHTML(string, options = {}) { at assertHTML (/home/runner/work/Koenig/Koenig/packages/koenig-lexical/test/utils/e2e.js:101:20) at /home/runner/work/Koenig/Koenig/packages/koenig-lexical/test/e2e/cards/callout-card.test.js:340:9
Slow Test: packages/koenig-lexical/[chromium] › card-behaviour.test.js#L1
packages/koenig-lexical/[chromium] › card-behaviour.test.js took 21.2s
Slow Test: packages/koenig-lexical/[chromium] › cards/image-card.test.js#L1
packages/koenig-lexical/[chromium] › cards/image-card.test.js took 17.2s
Slow Test: packages/koenig-lexical/[chromium] › cards/code-block-card.test.js#L1
packages/koenig-lexical/[chromium] › cards/code-block-card.test.js took 16.6s
Slow Test: packages/koenig-lexical/[chromium] › cards/html-card.test.js#L1
packages/koenig-lexical/[chromium] › cards/html-card.test.js took 15.4s
🎭 Playwright Run Summary
1 flaky [chromium] › cards/callout-card.test.js:328:5 › Callout Card › can undo/redo without losing content 20 skipped 608 passed (2.8m)

Artifacts

Produced during runtime
Name Size
playwright-report Expired
675 KB