Lazy load block edit functions #90483
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/columns.spec.js#L278
1) [chromium] › editor/blocks/columns.spec.js:269:3 › Columns › following paragraph › should be deleted on Backspace when empty
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 17
Array [
Object {
+ "attributes": Object {
+ "isStackedOnMobile": true,
+ },
"innerBlocks": Array [
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "1",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "2",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
],
"name": "core/columns",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
},
]
276 | await page.keyboard.press( 'Backspace' );
277 |
> 278 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
279 | columnsBlock,
280 | ] );
281 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/columns.spec.js:278:39
|
Run the tests:
test/e2e/specs/editor/blocks/columns.spec.js#L278
1) [chromium] › editor/blocks/columns.spec.js:269:3 › Columns › following paragraph › should be deleted on Backspace when empty
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 17
Array [
Object {
+ "attributes": Object {
+ "isStackedOnMobile": true,
+ },
"innerBlocks": Array [
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "1",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "2",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
],
"name": "core/columns",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
},
]
276 | await page.keyboard.press( 'Backspace' );
277 |
> 278 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
279 | columnsBlock,
280 | ] );
281 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/columns.spec.js:278:39
|
Run the tests:
test/e2e/specs/editor/blocks/columns.spec.js#L278
1) [chromium] › editor/blocks/columns.spec.js:269:3 › Columns › following paragraph › should be deleted on Backspace when empty
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 17
Array [
Object {
+ "attributes": Object {
+ "isStackedOnMobile": true,
+ },
"innerBlocks": Array [
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "1",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
Object {
+ "attributes": Object {},
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "2",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
],
"name": "core/column",
},
],
"name": "core/columns",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
},
]
276 | await page.keyboard.press( 'Backspace' );
277 |
> 278 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
279 | columnsBlock,
280 | ] );
281 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/columns.spec.js:278:39
|
Run the tests:
test/e2e/specs/editor/blocks/gallery.spec.js#L106
2) [chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
Error: expect.toBeVisible: Error: strict mode violation: locator('role=document[name="Block: Gallery"i]').locator('role=img') resolved to 2 elements:
1) <img src="blob:http://localhost:8889/6dd89e43-ba4e-47…/> aka getByRole('img', { name: 'This image has an empty alt attribute; its file name is 6dd89e43-ba4e-47ab-95b0-cb4551648f9e' })
2) <svg width="16" height="16" focusable="false" role="p…>…</svg> aka getByLabel('Block: Image').locator('svg')
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Gallery"i]').locator('role=img')
============================================================
104 |
105 | const image = galleryBlock.locator( 'role=img' );
> 106 | await expect( image ).toBeVisible();
| ^
107 | await expect( image ).toHaveAttribute( 'src', new RegExp( filename ) );
108 |
109 | const regex = new RegExp(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:106:25
|
Run the tests:
test/e2e/specs/editor/blocks/gallery.spec.js#L106
2) [chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: locator('role=document[name="Block: Gallery"i]').locator('role=img') resolved to 2 elements:
1) <img src="blob:http://localhost:8889/9cdf98b7-2656-4a…/> aka getByRole('img', { name: 'This image has an empty alt attribute; its file name is 9cdf98b7-2656-4a2c-ab8e-e2a3f91872bd' })
2) <svg width="16" height="16" focusable="false" role="p…>…</svg> aka getByLabel('Block: Image').locator('svg')
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Gallery"i]').locator('role=img')
============================================================
104 |
105 | const image = galleryBlock.locator( 'role=img' );
> 106 | await expect( image ).toBeVisible();
| ^
107 | await expect( image ).toHaveAttribute( 'src', new RegExp( filename ) );
108 |
109 | const regex = new RegExp(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:106:25
|
Run the tests:
test/e2e/specs/editor/blocks/gallery.spec.js#L106
2) [chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: locator('role=document[name="Block: Gallery"i]').locator('role=img') resolved to 2 elements:
1) <img src="blob:http://localhost:8889/a08e4c7f-143d-43…/> aka getByRole('img', { name: 'This image has an empty alt attribute; its file name is a08e4c7f-143d-4350-9777-489896bc0864' })
2) <svg width="16" height="16" focusable="false" role="p…>…</svg> aka getByLabel('Block: Image').locator('svg')
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Gallery"i]').locator('role=img')
============================================================
104 |
105 | const image = galleryBlock.locator( 'role=img' );
> 106 | await expect( image ).toBeVisible();
| ^
107 | await expect( image ).toHaveAttribute( 'src', new RegExp( filename ) );
108 |
109 | const regex = new RegExp(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:106:25
|
Run the tests:
test/e2e/specs/editor/blocks/group.spec.js#L91
3) [chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ───
Error: Snapshot comparison failed:
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/__snapshots__/Group-can-merge-into-group-with-Backspace-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-group-Group-can-merge-into-group-with-Backspace-chromium/Group-can-merge-into-group-with-Backspace-1-actual.txt
89 |
90 | // Confirm last paragraph is outside of group.
> 91 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
92 |
93 | // Merge the last paragraph into the group.
94 | await page.keyboard.press( 'ArrowLeft' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/group.spec.js:91:49
|
Run the tests:
test/e2e/specs/editor/blocks/group.spec.js#L91
3) [chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/__snapshots__/Group-can-merge-into-group-with-Backspace-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-group-Group-can-merge-into-group-with-Backspace-chromium-retry1/Group-can-merge-into-group-with-Backspace-1-actual.txt
89 |
90 | // Confirm last paragraph is outside of group.
> 91 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
92 |
93 | // Merge the last paragraph into the group.
94 | await page.keyboard.press( 'ArrowLeft' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/group.spec.js:91:49
|
Run the tests:
test/e2e/specs/editor/blocks/group.spec.js#L91
3) [chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ───
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/__snapshots__/Group-can-merge-into-group-with-Backspace-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-group-Group-can-merge-into-group-with-Backspace-chromium-retry2/Group-can-merge-into-group-with-Backspace-1-actual.txt
89 |
90 | // Confirm last paragraph is outside of group.
> 91 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
92 |
93 | // Merge the last paragraph into the group.
94 | await page.keyboard.press( 'ArrowLeft' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/group.spec.js:91:49
|
Run the tests:
test/e2e/specs/editor/blocks/heading.spec.js#L20
4) [chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "3",
+ "content": "",
"level": 3,
},
"name": "core/heading",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
18 | await page.keyboard.type( '### 3' );
19 |
> 20 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
21 | {
22 | name: 'core/heading',
23 | attributes: { content: '3', level: 3 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:20:41
|
Run the tests
60 failed
[chromium] › editor/blocks/columns.spec.js:269:3 › Columns › following paragraph › should be deleted on Backspace when empty
[chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
[chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
[chromium] › editor/blocks/heading.spec.js:47:2 › Heading › should not work with the list input rule
[chromium] › editor/blocks/heading.spec.js:64:2 › Heading › should work with the format input rules
[chromium] › editor/blocks/heading.spec.js:81:2 › Heading › should create a paragraph block above when pressing enter at the start
[chromium] › editor/blocks/heading.spec.js:102:2 › Heading › should create a paragraph block below when pressing enter at the end
[chromium] › editor/blocks/heading.spec.js:122:2 › Heading › should correctly apply custom colors
[chromium] › editor/blocks/heading.spec.js:159:2 › Heading › should correctly apply named colors
[chromium] › editor/blocks/heading.spec.js:195:2 › Heading › should change heading level with keyboard shortcuts
[chromium] › editor/blocks/heading.spec.js:261:2 › Heading › should be converted from a heading to a paragraph with keyboard shortcuts
[chromium] › editor/blocks/image.spec.js:64:2 › Image › should place caret on caption when clicking to add one
[chromium] › editor/blocks/links.spec.js:21:2 › Links › will use Post title as link text if link to existing post is created without any text selected
[chromium] › editor/blocks/links.spec.js:65:2 › Links › can be created by selecting text and clicking link insertion button in block toolbar
[chromium] › editor/blocks/links.spec.js:124:2 › Links › can be created without any text selected
[chromium] › editor/blocks/links.spec.js:156:2 › Links › will automatically create a link if selected text is a valid HTTP based URL
[chromium] › editor/blocks/links.spec.js:187:2 › Links › does not create link when link ui is closed without submission
[chromium] › editor/blocks/links.spec.js:222:2 › Links › can edit existing links ───────────────
[chromium] › editor/blocks/links.spec.js:253:2 › Links › can remove existing links ─────────────
[chromium] › editor/blocks/links.spec.js:329:2 › Links › can be edited when within a link but no selection has been made ("collapsed")
[chromium] › editor/blocks/links.spec.js:362:2 › Links › escape dismisses the Link UI popover and returns focus
[chromium] › editor/blocks/links.spec.js:429:2 › Links › can be created and modified using only the keyboard
[chromium] › editor/blocks/links.spec.js:598:2 › Links › can update the url of an existing link
[chromium] › editor/blocks/links.spec.js:756:2 › Links › can toggle link settings and save ─────
[chromium] › editor/blocks/links.spec.js:836:3 › Links › Editing link text › should allow for modification of link text via the Link UI
[chromium] › editor/blocks/links.spec.js:938:3 › Links › Editing link text › should show any trailing and/or leading whitespace from linked text within the text input
[chromium] › editor/blocks/links.spec.js:1158:3 › Links › Disabling Link UI active state › should correctly replace active link's text value within rich text even when multiple matching text values exist within the rich text
[chromium] › editor/blocks/list.spec.js:11:2 › List (@Firefox) › can be created by using an asterisk at the start of a paragraph block
[chromium] › editor/blocks/list.spec.js:58:2 › List (@Firefox) › can be created by using a number at the start of a paragraph block
[chromium] › editor/blocks/list.spec.js:95:2 › List (@Firefox) › should undo asterisk transform with backspace (-firefox)
[chromium] › editor/blocks/list.spec.js:171:2 › List (@Firefox) › should undo asterisk transform with escape (-firefox)
[chromium] › editor/blocks/list.spec.js:223:2 › List (
|
The logs for this run have expired and are no longer available.
Loading