fix: set width attribute on image and video elements in editor render #7802
build.yml
on: pull_request
Playwright Build
48s
Build
2m 30s
Matrix: playwright
Merge Playwright Reports
46s
Annotations
4 errors, 1 warning, and 7 notices
|
[firefox] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark:
tests/src/end-to-end/colors/colors.test.ts#L45
1) [firefox] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
Error: expect(Buffer).toMatchSnapshot(expected)
5798 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts-snapshots/textColorMark-firefox-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Backgr-1bebc--to-apply-a-text-color-mark-firefox/textColorMark-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Backgr-1bebc--to-apply-a-text-color-mark-firefox/textColorMark-diff.png
43 | await page.waitForTimeout(500);
44 |
> 45 | expect(await page.screenshot()).toMatchSnapshot("textColorMark.png");
| ^
46 | });
47 | test("Should be able to apply a background color mark", async ({ page }) => {
48 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts:45:37
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(string).toMatchSnapshot(expected)
@@ -41,19 +41,41 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "ParagraphParagraph"
+ "text": "Paragrah"
}
]
}
]
}
]
}
]
+ },
+ {
+ "type": "blockContainer",
+ "attrs": {
+ "id": "2"
+ },
+ "content": [
+ {
+ "type": "paragraph",
+ "attrs": {
+ "backgroundColor": "default",
+ "textColor": "default",
+ "textAlignment": "left"
+ },
+ "content": [
+ {
+ "type": "text",
+ "text": "Paragraph"
+ }
+ ]
+ }
+ ]
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-9a661-lete-before-shallower-block-webkit-retry1/deleteShallowerBlock-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:319:5
|
|
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block:
tests/src/utils/editor.ts#L47
2) [webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
Error: expect(string).toMatchSnapshot(expected)
@@ -41,19 +41,41 @@
"textAlignment": "left"
},
"content": [
{
"type": "text",
- "text": "ParagraphParagraph"
+ "text": "Paragrap"
}
]
}
]
}
]
}
]
+ },
+ {
+ "type": "blockContainer",
+ "attrs": {
+ "id": "2"
+ },
+ "content": [
+ {
+ "type": "paragraph",
+ "attrs": {
+ "backgroundColor": "default",
+ "textColor": "default",
+ "textAlignment": "left"
+ },
+ "content": [
+ {
+ "type": "text",
+ "text": "Paragraph"
+ }
+ ]
+ }
+ ]
}
]
}
]
}
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/deleteShallowerBlock-json-webkit-linux.json
Received: /__w/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardh-9a661-lete-before-shallower-block-webkit/deleteShallowerBlock-json-actual.json
at ../utils/editor.ts:47
45 | // Remove id from docs
46 | const doc = JSON.stringify(await getDoc(page), null, 2);
> 47 | expect(doc).toMatchSnapshot(`${name}.json`);
| ^
48 | }
49 |
at compareDocToSnapshot (/__w/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
at /__w/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:319:5
|
|
[webkit] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark:
tests/src/end-to-end/colors/colors.test.ts#L45
1) [webkit] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
Error: expect(Buffer).toMatchSnapshot(expected)
6453 pixels (ratio 0.01 of all image pixels) are different.
Expected: /__w/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts-snapshots/textColorMark-webkit-linux.png
Received: /__w/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Backgr-1bebc--to-apply-a-text-color-mark-webkit/textColorMark-actual.png
Diff: /__w/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Backgr-1bebc--to-apply-a-text-color-mark-webkit/textColorMark-diff.png
43 | await page.waitForTimeout(500);
44 |
> 45 | expect(await page.screenshot()).toMatchSnapshot("textColorMark.png");
| ^
46 | });
47 | test("Should be able to apply a background color mark", async ({ page }) => {
48 | await focusOnEditor(page);
at /__w/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts:45:37
|
|
Build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/upload-artifact@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Build
{
"workflowData": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "b1cf0097baa0552d88ea4874c1fbfef2c55f207e",
"ref": "2740",
"headBranch": "feat/readonly-image-width"
},
"key": "RFq0HYvgig",
"runId": 25786161695,
"webhookDebug": {
"action": "requested",
"head_branch": "feat/readonly-image-width",
"head_repository_full_name": "TypeCellOS/BlockNote",
"full_name": "TypeCellOS/BlockNote",
"isPullRequest": true,
"prNumber": 2740,
"prNumberType": "number",
"isNewPullRequest": true,
"isOldPullRequest": false,
"prKey": "TypeCellOS/BlockNote:feat/readonly-image-width",
"oldPrDataHash": "W4nnsqseHu",
"lookupKey": "TypeCellOS/BlockNote:feat/readonly-image-width",
"data": {
"owner": "TypeCellOS",
"repo": "BlockNote",
"sha": "b1cf0097baa0552d88ea4874c1fbfef2c55f207e",
"ref": "2740",
"headBranch": "feat/readonly-image-width"
}
},
"currentCursor": {
"sha": "b1cf0097baa0552d88ea4874c1fbfef2c55f207e",
"timestamp": 25785947039
},
"pkgPrNewVersion": "0.0.71"
}
|
|
🎭 Playwright Run Summary
1 skipped
42 passed (45.9s)
|
|
🎭 Playwright Run Summary
43 passed (36.5s)
|
|
🎭 Playwright Run Summary
43 passed (1.0m)
|
|
🎭 Playwright Run Summary
2 skipped
92 passed (1.3m)
|
|
🎭 Playwright Run Summary
1 flaky
[firefox] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
16 skipped
77 passed (1.5m)
|
|
🎭 Playwright Run Summary
2 flaky
[webkit] › src/end-to-end/colors/colors.test.ts:22:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark
[webkit] › src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:306:7 › Check Keyboard Handlers' Behaviour › Check Delete before shallower block
12 skipped
80 passed (3.1m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
blob-report-chromium-1
Expired
|
127 KB |
sha256:f17965779a87f745f593bb1d2949ddd45e2e8648443bece12fd7f9c59f71c713
|
|
|
blob-report-chromium-2
Expired
|
52.4 KB |
sha256:e5901b91a0dbd28e02bae5c6ea9a08e11503d9203fd2810c567fdfc709bb6d25
|
|
|
blob-report-firefox-1
Expired
|
458 KB |
sha256:cdccbf2b1fe2389130c9113bdf761f165dfe54e20f7779ac8f10f42febb50ee9
|
|
|
blob-report-firefox-2
Expired
|
52.3 KB |
sha256:ff438c2f14aa00b0a4a9d9721d5beb1fe21df7124f2151681942b53cd06e4773
|
|
|
blob-report-webkit-1
Expired
|
4.33 MB |
sha256:6f11352acdcc06a5df3a1be220fad2b4c5fc2f789f045aa678261005af7350f7
|
|
|
blob-report-webkit-2
Expired
|
53.3 KB |
sha256:21a09eeb1b06c5736cb26a6a7a8bcdfd13757ca02589c74b15527905d924ff86
|
|
|
playwright-build
Expired
|
21.2 MB |
sha256:b10468f144a6b643efb343bb972b05ede3add4b8b02c6338d3fdc63cc73925f9
|
|
|
playwright-report-chromium-1
Expired
|
260 KB |
sha256:b4299d5752a42c54ce9953f0014949326eb0b09064562d6eabbd17329f0d6f97
|
|
|
playwright-report-chromium-2
Expired
|
210 KB |
sha256:204d617515b89d883f0d849941055bee274e7df007e054479d9e861e3843bb7f
|
|
|
playwright-report-firefox-1
Expired
|
975 KB |
sha256:67543a413782a7ebc53525450980c0994e306dccddc9068f5ec252600d07d946
|
|
|
playwright-report-firefox-2
Expired
|
209 KB |
sha256:2f59e6490d299daeb348312de28a7bc616bc785129d329b151af14b19a89a893
|
|
|
playwright-report-merged
Expired
|
5.16 MB |
sha256:90d82cb3c10a1f53237911f7126e42199b2910735c128b0595f1419746c0ec56
|
|
|
playwright-report-webkit-1
Expired
|
4.77 MB |
sha256:2d0cc3fcef5c4a4ab8561ddeff38e6594beeafb9b33b657e4d69fb9900401861
|
|
|
playwright-report-webkit-2
Expired
|
210 KB |
sha256:787ad1a8efd448c51a7352c363fd985c8ceabffe19912fa7679219ecdbaf8426
|
|
|
relative-ci-artifacts-editor
|
44.7 KB |
sha256:24d21731905df15155a9b3d9004f8a8ca970d8169a155da2438c86fe790b22da
|
|