Skip to content

fix: Next/analytics #2118

fix: Next/analytics

fix: Next/analytics #2118

Triggered via pull request March 5, 2024 16:31
Status Success
Total duration 10m 53s
Artifacts 2

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 8 warnings, and 1 notice
[chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks: tests/src/utils/editor.ts#L37
1) [chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks Error: Snapshot comparison failed: { "type": "doc", "content": [ { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { "id": "0", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "heading", "attrs": { "textAlignment": "left", "level": 1 }, "content": [ { "type": "text", "marks": [ { "type": "italic" } ], "text": "H" } ] } ] }, { "type": "blockContainer", "attrs": { "id": "2", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraphheading", "attrs": { "textAlignment": "left" }, "content": [ { "type": "text", "marks": [ { "type": "italic" } ], "text": "eading" } ], "level": 1 } } ] }, { "type": "blockContainer", "attrs": { "id": "1", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] } ] } ] } Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/enterPreservesMarks-json-chromium-linux.json Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboard-Handlers-Behaviour-Check-Enter-preserves-marks-chromium/enterPreservesMarks-json-actual.json at ../utils/editor.ts:37 35 | // Remove id from docs 36 | const doc = JSON.stringify(await getDoc(page), null, 2); > 37 | expect(doc).toMatchSnapshot(`${name}.json`); | ^ 38 | } 39 | at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/src/utils/editor.ts:37:15) at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:55:5
[webkit] › colors/colors.test.ts:20:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark: tests/src/end-to-end/colors/colors.test.ts#L40
2) [webkit] › colors/colors.test.ts:20:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark Error: Screenshot comparison failed: 12026 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts-snapshots/textColorMark-webkit-linux.png Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Background-Text-Color-Functionality-Should-be-able-to-apply-a-text-color-mark-webkit/textColorMark-actual.png Diff: /home/runner/work/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Background-Text-Color-Functionality-Should-be-able-to-apply-a-text-color-mark-webkit/textColorMark-diff.png 38 | await page.waitForTimeout(500); 39 | > 40 | expect(await page.screenshot()).toMatchSnapshot("textColorMark.png"); | ^ 41 | }); 42 | test("Should be able to apply a background color mark", async ({ page }) => { 43 | await focusOnEditor(page); at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts:40:37
[webkit] › colors/colors.test.ts:42:7 › Check Background & Text Color Functionality › Should be able to apply a background color mark: tests/src/end-to-end/colors/colors.test.ts#L62
3) [webkit] › colors/colors.test.ts:42:7 › Check Background & Text Color Functionality › Should be able to apply a background color mark Error: Screenshot comparison failed: 12026 pixels (ratio 0.01 of all image pixels) are different. Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts-snapshots/backgroundColorMark-webkit-linux.png Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Background-Text-Color-Func-56edd-Should-be-able-to-apply-a-background-color-mark-webkit/backgroundColorMark-actual.png Diff: /home/runner/work/BlockNote/BlockNote/tests/test-results/colors-colors-Check-Background-Text-Color-Func-56edd-Should-be-able-to-apply-a-background-color-mark-webkit/backgroundColorMark-diff.png 60 | await page.waitForTimeout(500); 61 | > 62 | expect(await page.screenshot()).toMatchSnapshot("backgroundColorMark.png"); | ^ 63 | }); 64 | test("Should be able to set block text color", async ({ page }) => { 65 | await focusOnEditor(page); at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/colors/colors.test.ts:62:37
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:75:7 › Check Keyboard Handlers' Behaviour › Check Backspace at the start of a block: tests/src/utils/editor.ts#L37
4) [webkit] › keyboardhandlers/keyboardhandlers.test.ts:75:7 › Check Keyboard Handlers' Behaviour › Check Backspace at the start of a block Error: Snapshot comparison failed: { "type": "doc", "content": [ { "type": "blockGroup", "content": [ { "type": "blockContainer", "attrs": { "id": "0", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraphheading", "attrs": { "textAlignment": "left", "level": 1 }, "content": [ { "type": "text", "text": "Heading" } ] } ] }, { "type": "blockContainer", "attrs": { "id": "1", "textColor": "default", "backgroundColor": "default" }, "content": [ { "type": "paragraph", "attrs": { "textAlignment": "left" } } ] } ] } ] } Expected: /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts-snapshots/backspaceStartOfBlock-json-webkit-linux.json Received: /home/runner/work/BlockNote/BlockNote/tests/test-results/keyboardhandlers-keyboardhandlers-Check-Keyboa-54c1c-haviour-Check-Backspace-at-the-start-of-a-block-webkit/backspaceStartOfBlock-json-actual.json at ../utils/editor.ts:37 35 | // Remove id from docs 36 | const doc = JSON.stringify(await getDoc(page), null, 2); > 37 | expect(doc).toMatchSnapshot(`${name}.json`); | ^ 38 | } 39 | at compareDocToSnapshot (/home/runner/work/BlockNote/BlockNote/tests/src/utils/editor.ts:37:15) at /home/runner/work/BlockNote/BlockNote/tests/src/end-to-end/keyboardhandlers/keyboardhandlers.test.ts:83:5
🎭 Playwright Run Summary
4 flaky [chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks [webkit] › colors/colors.test.ts:20:7 › Check Background & Text Color Functionality › Should be able to apply a text color mark [webkit] › colors/colors.test.ts:42:7 › Check Background & Text Color Functionality › Should be able to apply a background color mark [webkit] › keyboardhandlers/keyboardhandlers.test.ts:75:7 › Check Keyboard Handlers' Behaviour › Check Backspace at the start of a block 18 skipped 164 passed (6.2m)
Build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Slow Test: tests/[webkit] › draghandle/draghandle.test.ts#L1
tests/[webkit] › draghandle/draghandle.test.ts took 25.4s
Slow Test: tests/[webkit] › keyboardhandlers/keyboardhandlers.test.ts#L1
tests/[webkit] › keyboardhandlers/keyboardhandlers.test.ts took 24.8s
Slow Test: tests/[webkit] › colors/colors.test.ts#L1
tests/[webkit] › colors/colors.test.ts took 23.2s
Slow Test: tests/[firefox] › draghandle/draghandle.test.ts#L1
tests/[firefox] › draghandle/draghandle.test.ts took 22.9s
Slow Test: tests/[chromium] › draghandle/draghandle.test.ts#L1
tests/[chromium] › draghandle/draghandle.test.ts took 21.5s

Artifacts

Produced during runtime
Name Size
playwright-report Expired
4.13 MB
relative-ci-artifacts-editor Expired
92.5 KB