feat: Default image blocks #1234
Annotations
10 errors, 6 warnings, and 1 notice
[chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block:
tests/utils/editor.ts#L37
1) [chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:27:5
|
[chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block:
tests/utils/editor.ts#L37
1) [chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:27:5
|
[chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block:
tests/utils/editor.ts#L37
1) [chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/createImage-chromium-linux.json, writing actual.
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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:27:5
|
[chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block:
tests/end-to-end/images/images.test.ts#L28
1) [chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/create-image-chromium-linux.png, writing actual.
26 | await page.waitForTimeout(500);
27 | await compareDocToSnapshot(page, "createImage");
> 28 | expect(await page.screenshot()).toMatchSnapshot("create-image.png");
| ^
29 | });
30 | test("Should be able to upload image", async ({ page }) => {
31 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:28:37
|
[chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image:
tests/end-to-end/images/images.test.ts#L40
2) [chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/upload-image-chromium-linux.png.
38 | await page.waitForSelector(`img[src^="https://tmpfiles.org/"]`);
39 |
> 40 | expect(await page.screenshot()).toMatchSnapshot("upload-image.png");
| ^
41 | });
42 | test("Should be able to embed image", async ({ page }) => {
43 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:40:37
|
[chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image:
tests/end-to-end/images/images.test.ts#L40
2) [chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/upload-image-chromium-linux.png.
38 | await page.waitForSelector(`img[src^="https://tmpfiles.org/"]`);
39 |
> 40 | expect(await page.screenshot()).toMatchSnapshot("upload-image.png");
| ^
41 | });
42 | test("Should be able to embed image", async ({ page }) => {
43 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:40:37
|
[chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image:
tests/end-to-end/images/images.test.ts#L40
2) [chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/upload-image-chromium-linux.png, writing actual.
38 | await page.waitForSelector(`img[src^="https://tmpfiles.org/"]`);
39 |
> 40 | expect(await page.screenshot()).toMatchSnapshot("upload-image.png");
| ^
41 | });
42 | test("Should be able to embed image", async ({ page }) => {
43 | await focusOnEditor(page);
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:40:37
|
[chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/utils/editor.ts#L37
3) [chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:52:5
|
[chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/utils/editor.ts#L37
3) [chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:52:5
|
[chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image:
tests/utils/editor.ts#L37
3) [chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: A snapshot doesn't exist at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts-snapshots/embedImage-chromium-linux.json, writing actual.
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/utils/editor.ts:37:15)
at /home/runner/work/BlockNote/BlockNote/tests/end-to-end/images/images.test.ts:52:5
|
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v2, 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:
[webkit] › images/images.test.ts#L1
[webkit] › images/images.test.ts took 2.4m
|
Slow Test:
[firefox] › images/images.test.ts#L1
[firefox] › images/images.test.ts took 59.1s
|
Slow Test:
[chromium] › images/images.test.ts#L1
[chromium] › images/images.test.ts took 42.1s
|
Slow Test:
[webkit] › keyboardhandlers/keyboardhandlers.test.ts#L1
[webkit] › keyboardhandlers/keyboardhandlers.test.ts took 31.9s
|
Slow Test:
[webkit] › draghandle/draghandle.test.ts#L1
[webkit] › draghandle/draghandle.test.ts took 23.8s
|
🎭 Playwright Run Summary
22 failed
[chromium] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
[chromium] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
[chromium] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[chromium] › images/images.test.ts:55:7 › Check Image Block and Toolbar functionality › Should be able to resize image
[chromium] › images/images.test.ts:92:7 › Check Image Block and Toolbar functionality › Should be able to delete image with backspace
[chromium] › images/images.test.ts:107:7 › Check Image Block and Toolbar functionality › Should be able to drag image
[chromium] › theming/theming.test.ts:85:7 › Check Dark Theme is Automatically Applied › Should show dark image toolbar
[firefox] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
[firefox] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
[firefox] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[firefox] › images/images.test.ts:55:7 › Check Image Block and Toolbar functionality › Should be able to resize image
[firefox] › images/images.test.ts:92:7 › Check Image Block and Toolbar functionality › Should be able to delete image with backspace
[firefox] › images/images.test.ts:107:7 › Check Image Block and Toolbar functionality › Should be able to drag image
[firefox] › theming/theming.test.ts:85:7 › Check Dark Theme is Automatically Applied › Should show dark image toolbar
[webkit] › images/images.test.ts:22:7 › Check Image Block and Toolbar functionality › Should be able to create image block
[webkit] › images/images.test.ts:30:7 › Check Image Block and Toolbar functionality › Should be able to upload image
[webkit] › images/images.test.ts:42:7 › Check Image Block and Toolbar functionality › Should be able to embed image
[webkit] › images/images.test.ts:55:7 › Check Image Block and Toolbar functionality › Should be able to resize image
[webkit] › images/images.test.ts:92:7 › Check Image Block and Toolbar functionality › Should be able to delete image with backspace
[webkit] › images/images.test.ts:107:7 › Check Image Block and Toolbar functionality › Should be able to drag image
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:85:7 › Check Keyboard Handlers' Behaviour › Check Backspace preserves marks
[webkit] › theming/theming.test.ts:85:7 › Check Dark Theme is Automatically Applied › Should show dark image toolbar
3 flaky
[chromium] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:18:7 › Check Keyboard Handlers' Behaviour › Check Enter when selection is not empty
[webkit] › keyboardhandlers/keyboardhandlers.test.ts:40:7 › Check Keyboard Handlers' Behaviour › Check Enter preserves marks
17 skipped
144 passed (11.0m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
18.5 MB |
|