Skip to content

Internal html changes #3151

Internal html changes

Internal html changes #3151

Triggered via pull request October 1, 2024 12:27
Status Failure
Total duration 13m 4s
Artifacts 1

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors, 5 warnings, and 1 notice
[chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props: tests/src/utils/editor.ts#L47
1) [chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props Error: Snapshot comparison failed: { "type": "doc", "content": [ { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { "id": "0", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" }, "content": [ { "type": "text", "text": "paragraph" } ] } ] }, { "type": "blockContainer", "attrs": { "id": "2", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "1", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] }, { "type": "blockContainer", "attrs": { "id": "4", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "5", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] } ] } ] } Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium/images-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 (/home/runner/work/BlockNote/BlockNote/tests/src/utils/editor.ts:47:15)
[chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props: tests/src/utils/editor.ts#L47
1) [chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Snapshot comparison failed: { "type": "doc", "content": [ { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { "id": "0", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" }, "content": [ { "type": "text", "text": "paragraph" } ] } ] }, { "type": "blockContainer", "attrs": { "id": "2", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "1", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] }, { "type": "blockContainer", "attrs": { "id": "4", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "5", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] } ] } ] } Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium-retry1/images-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 |
[chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props: tests/src/utils/editor.ts#L47
1) [chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Snapshot comparison failed: { "type": "doc", "content": [ { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { "id": "0", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" }, "content": [ { "type": "text", "text": "paragraph" } ] } ] }, { "type": "blockContainer", "attrs": { "id": "2", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "1", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] }, { "type": "blockContainer", "attrs": { "id": "4", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "image", "attrs": { "textAlignment": "left", "name": "jk-placeholder-image.jpg", "url": "https://www.pulsecarshalton.co.uk/wp-content/uploads/2016/08/jk-placeholder-image.jpg", "caption": "", "showPreview": true, "previewWidth": 462 } } ] }, { "type": "blockContainer", "attrs": { "id": "5", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] } ] } ] } Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/copypaste/copypaste.test.ts-snapshots/images-json-chromium-linux.json Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/copypaste-copypaste-Check--8319b-ty-Images-should-keep-props-chromium-retry2/images-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 |
[firefox] › draghandle/draghandle.test.ts:88:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/end-to-end/draghandle/draghandle.test.ts#L1
2) [firefox] › draghandle/draghandle.test.ts:88:7 › Check Draghandle functionality › Clicking add button should create new block Test timeout of 30000ms exceeded.
[firefox] › draghandle/draghandle.test.ts:88:7 › Check Draghandle functionality › Clicking add button should create new block: tests/src/end-to-end/draghandle/draghandle.test.ts#L93
2) [firefox] › draghandle/draghandle.test.ts:88:7 › Check Draghandle functionality › Clicking add button should create new block Error: page.waitForSelector: Target page, context or browser has been closed Call log: - waiting for locator('[data-content-type=heading][data-level="2"]') to be visible 91 | await hoverAndAddBlockFromDragHandle(page, H_ONE_BLOCK_SELECTOR, "h2"); 92 | await page.keyboard.type("This is an h2"); > 93 | await page.waitForSelector(H_TWO_BLOCK_SELECTOR); | ^ 94 | 95 | await page.waitForTimeout(1000); 96 | await compareDocToSnapshot(page, "draghandleadd"); at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/draghandle/draghandle.test.ts:93:16
[webkit] › images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image: tests/src/end-to-end/images/images.test.ts#L61
3) [webkit] › images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image Error: Screenshot comparison failed: 17434 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts-snapshots/embed-image-webkit-linux.png Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit/embed-image-actual.png Diff: /home/runner/work/BlockNote/BlockNote/tests/test-results/images-images-Check-Image--95903-ould-be-able-to-embed-image-webkit/embed-image-diff.png 59 | await page.waitForTimeout(500); 60 | await compareDocToSnapshot(page, "embedImage"); > 61 | expect(await page.screenshot()).toMatchSnapshot("embed-image.png"); | ^ 62 | }); 63 | test("Should be able to resize image", async ({ page }) => { 64 | await focusOnEditor(page); at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/images/images.test.ts:61:37
[webkit] › theming/theming.test.ts:38:7 › Check Dark Theme is Automatically Applied › Should show dark link toolbar: tests/src/end-to-end/theming/theming.test.ts#L50
4) [webkit] › theming/theming.test.ts:38:7 › Check Dark Theme is Automatically Applied › Should show dark link toolbar Error: Screenshot comparison failed: 11970 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/theming/theming.test.ts-snapshots/dark-link-toolbar-webkit-linux.png Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/theming-theming-Check-Dark-398f6-ould-show-dark-link-toolbar-webkit/dark-link-toolbar-actual.png Diff: /home/runner/work/BlockNote/BlockNote/tests/test-results/theming-theming-Check-Dark-398f6-ould-show-dark-link-toolbar-webkit/dark-link-toolbar-diff.png 48 | 49 | await page.waitForTimeout(500); > 50 | expect(await page.screenshot()).toMatchSnapshot("dark-link-toolbar.png"); | ^ 51 | }); 52 | test("Should show dark slash menu", async ({ page }) => { 53 | await focusOnEditor(page); at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/theming/theming.test.ts:50:37
Build
Process completed with exit code 1.
Slow Test: tests/[webkit] › draghandle/draghandle.test.ts#L1
tests/[webkit] › draghandle/draghandle.test.ts took 28.1s
Slow Test: tests/[chromium] › draghandle/draghandle.test.ts#L1
tests/[chromium] › draghandle/draghandle.test.ts took 24.9s
Slow Test: tests/[webkit] › slashmenu/slashmenu.test.ts#L1
tests/[webkit] › slashmenu/slashmenu.test.ts took 21.3s
Slow Test: tests/[firefox] › images/images.test.ts#L1
tests/[firefox] › images/images.test.ts took 19.8s
Slow Test: tests/[firefox] › slashmenu/slashmenu.test.ts#L1
tests/[firefox] › slashmenu/slashmenu.test.ts took 19.4s
🎭 Playwright Run Summary
1 failed [chromium] › copypaste/copypaste.test.ts:142:7 › Check Copy/Paste Functionality › Images should keep props 3 flaky [firefox] › draghandle/draghandle.test.ts:88:7 › Check Draghandle functionality › Clicking add button should create new block [webkit] › images/images.test.ts:46:7 › Check Image Block and Toolbar functionality › Should be able to embed image [webkit] › theming/theming.test.ts:38:7 › Check Dark Theme is Automatically Applied › Should show dark link toolbar 18 skipped 227 passed (8.6m)

Artifacts

Produced during runtime
Name Size
playwright-report
3.22 MB