Fix unable to remove empty blocks on merge (#65262) #115614
Annotations
10 errors and 1 notice
test/e2e/specs/editor/blocks/list.spec.js#L599
1) [firefox] › editor/blocks/list.spec.js:559:2 › List (@Firefox) › should keep nested list items when merging with paragraph
Error: expect(received).toMatchObject(expected)
- Expected - 2
+ Received + 20
@@ -1,24 +1,42 @@
Array [
Object {
"attributes": Object {
"content": "p",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
Object {
"attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
+ "innerBlocks": Array [
+ Object {
+ "attributes": Object {
"content": "1",
},
- "name": "core/paragraph",
- },
+ "innerBlocks": Array [
Object {
+ "attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "i",
+ },
+ "innerBlocks": Array [],
+ "name": "core/list-item",
},
+ ],
+ "name": "core/list",
+ },
+ ],
"name": "core/list-item",
},
],
"name": "core/list",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
597 | await page.keyboard.press( 'Backspace' );
598 |
> 599 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
600 | {
601 | name: 'core/paragraph',
602 | attributes: { content: 'p' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:599:3
|
test/e2e/specs/editor/blocks/list.spec.js#L599
1) [firefox] › editor/blocks/list.spec.js:559:2 › List (@Firefox) › should keep nested list items when merging with paragraph
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 2
+ Received + 20
@@ -1,24 +1,42 @@
Array [
Object {
"attributes": Object {
"content": "p",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
Object {
"attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
+ "innerBlocks": Array [
+ Object {
+ "attributes": Object {
"content": "1",
},
- "name": "core/paragraph",
- },
+ "innerBlocks": Array [
Object {
+ "attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "i",
+ },
+ "innerBlocks": Array [],
+ "name": "core/list-item",
},
+ ],
+ "name": "core/list",
+ },
+ ],
"name": "core/list-item",
},
],
"name": "core/list",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
597 | await page.keyboard.press( 'Backspace' );
598 |
> 599 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
600 | {
601 | name: 'core/paragraph',
602 | attributes: { content: 'p' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:599:3
|
test/e2e/specs/editor/blocks/list.spec.js#L599
1) [firefox] › editor/blocks/list.spec.js:559:2 › List (@Firefox) › should keep nested list items when merging with paragraph
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 2
+ Received + 20
@@ -1,24 +1,42 @@
Array [
Object {
"attributes": Object {
"content": "p",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
Object {
"attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
+ "innerBlocks": Array [
+ Object {
+ "attributes": Object {
"content": "1",
},
- "name": "core/paragraph",
- },
+ "innerBlocks": Array [
Object {
+ "attributes": Object {
+ "ordered": false,
+ "values": "",
+ },
"innerBlocks": Array [
Object {
"attributes": Object {
"content": "i",
+ },
+ "innerBlocks": Array [],
+ "name": "core/list-item",
},
+ ],
+ "name": "core/list",
+ },
+ ],
"name": "core/list-item",
},
],
"name": "core/list",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
597 | await page.keyboard.press( 'Backspace' );
598 |
> 599 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
600 | {
601 | name: 'core/paragraph',
602 | attributes: { content: 'p' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:599:3
|
test/e2e/specs/editor/blocks/list.spec.js#L1240
2) [firefox] › editor/blocks/list.spec.js:1226:2 › List (@Firefox) › first empty list item is graciously removed
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 6
- <!-- wp:paragraph -->
- <p></p>
- <!-- /wp:paragraph -->
-
- <!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
+ <!-- wp:list -->
+ <ul class="wp-block-list"><!-- wp:list-item -->
+ <li></li>
+ <!-- /wp:list-item -->
+
+ <!-- wp:list-item -->
<li>2</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
1238 | await page.keyboard.press( 'Backspace' );
1239 |
> 1240 | await expect.poll( editor.getEditedPostContent ).toBe(
| ^
1241 | `<!-- wp:paragraph -->
1242 | <p></p>
1243 | <!-- /wp:paragraph -->
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1240:3
|
test/e2e/specs/editor/blocks/list.spec.js#L1240
2) [firefox] › editor/blocks/list.spec.js:1226:2 › List (@Firefox) › first empty list item is graciously removed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 6
- <!-- wp:paragraph -->
- <p></p>
- <!-- /wp:paragraph -->
-
- <!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
+ <!-- wp:list -->
+ <ul class="wp-block-list"><!-- wp:list-item -->
+ <li></li>
+ <!-- /wp:list-item -->
+
+ <!-- wp:list-item -->
<li>2</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
1238 | await page.keyboard.press( 'Backspace' );
1239 |
> 1240 | await expect.poll( editor.getEditedPostContent ).toBe(
| ^
1241 | `<!-- wp:paragraph -->
1242 | <p></p>
1243 | <!-- /wp:paragraph -->
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1240:3
|
test/e2e/specs/editor/blocks/list.spec.js#L1240
2) [firefox] › editor/blocks/list.spec.js:1226:2 › List (@Firefox) › first empty list item is graciously removed
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 6
- <!-- wp:paragraph -->
- <p></p>
- <!-- /wp:paragraph -->
-
- <!-- wp:list -->
- <ul class="wp-block-list"><!-- wp:list-item -->
+ <!-- wp:list -->
+ <ul class="wp-block-list"><!-- wp:list-item -->
+ <li></li>
+ <!-- /wp:list-item -->
+
+ <!-- wp:list-item -->
<li>2</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
1238 | await page.keyboard.press( 'Backspace' );
1239 |
> 1240 | await expect.poll( editor.getEditedPostContent ).toBe(
| ^
1241 | `<!-- wp:paragraph -->
1242 | <p></p>
1243 | <!-- /wp:paragraph -->
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/list.spec.js:1240:3
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L411
3) [firefox] › editor/various/splitting-merging.spec.js:377:2 › splitting and merging blocks (@Firefox, @WebKit) › should handle unwrapping and merging blocks with empty contents
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 14
@@ -4,11 +4,20 @@
"tagName": "div",
},
"innerBlocks": Array [
Object {
"attributes": Object {
+ "align": "center",
"content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
"level": 2,
"textAlign": "center",
},
"innerBlocks": Array [],
"name": "core/heading",
@@ -19,11 +28,15 @@
"level": 2,
},
"innerBlocks": Array [],
"name": "core/heading",
},
- ObjectContaining {
+ Object {
+ "attributes": Object {
+ "opacity": "alpha-channel",
+ },
+ "innerBlocks": Array [],
"name": "core/separator",
},
],
"name": "core/group",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
409 |
410 | await page.keyboard.press( 'Backspace' );
> 411 | await expect
| ^
412 | .poll( editor.getBlocks, 'Remove the default empty block' )
413 | .toEqual( [
414 | {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:411:3
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L411
3) [firefox] › editor/various/splitting-merging.spec.js:377:2 › splitting and merging blocks (@Firefox, @WebKit) › should handle unwrapping and merging blocks with empty contents
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 14
@@ -4,11 +4,20 @@
"tagName": "div",
},
"innerBlocks": Array [
Object {
"attributes": Object {
+ "align": "center",
"content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
"level": 2,
"textAlign": "center",
},
"innerBlocks": Array [],
"name": "core/heading",
@@ -19,11 +28,15 @@
"level": 2,
},
"innerBlocks": Array [],
"name": "core/heading",
},
- ObjectContaining {
+ Object {
+ "attributes": Object {
+ "opacity": "alpha-channel",
+ },
+ "innerBlocks": Array [],
"name": "core/separator",
},
],
"name": "core/group",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
409 |
410 | await page.keyboard.press( 'Backspace' );
> 411 | await expect
| ^
412 | .poll( editor.getBlocks, 'Remove the default empty block' )
413 | .toEqual( [
414 | {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:411:3
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L411
3) [firefox] › editor/various/splitting-merging.spec.js:377:2 › splitting and merging blocks (@Firefox, @WebKit) › should handle unwrapping and merging blocks with empty contents
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 14
@@ -4,11 +4,20 @@
"tagName": "div",
},
"innerBlocks": Array [
Object {
"attributes": Object {
+ "align": "center",
"content": "",
+ "dropCap": false,
+ },
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
+ },
+ Object {
+ "attributes": Object {
+ "content": "",
"level": 2,
"textAlign": "center",
},
"innerBlocks": Array [],
"name": "core/heading",
@@ -19,11 +28,15 @@
"level": 2,
},
"innerBlocks": Array [],
"name": "core/heading",
},
- ObjectContaining {
+ Object {
+ "attributes": Object {
+ "opacity": "alpha-channel",
+ },
+ "innerBlocks": Array [],
"name": "core/separator",
},
],
"name": "core/group",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
409 |
410 | await page.keyboard.press( 'Backspace' );
> 411 | await expect
| ^
412 | .poll( editor.getBlocks, 'Remove the default empty block' )
413 | .toEqual( [
414 | {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:411:3
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L530
4) [firefox] › editor/various/splitting-merging.spec.js:520:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on forward delete
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 11
@@ -1,24 +1,32 @@
Array [
Object {
"attributes": Object {
"content": "hi",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
+ },
+ Object {
+ "attributes": Object {
+ "ordered": false,
+ "values": "",
},
+ "innerBlocks": Array [
Object {
"attributes": Object {
"content": "item 1",
},
- "name": "core/paragraph",
+ "innerBlocks": Array [],
+ "name": "core/list-item",
},
- Object {
- "innerBlocks": Array [
Object {
"attributes": Object {
"content": "item 2",
},
+ "innerBlocks": Array [],
"name": "core/list-item",
},
],
"name": "core/list",
},
528 | await page.keyboard.press( 'Delete' );
529 |
> 530 | expect( await editor.getBlocks() ).toMatchObject( snap1 );
| ^
531 |
532 | await page.keyboard.press( 'Delete' );
533 | // Carret should be in the first block and at the proper position.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:530:39
|
5 failed
[firefox] › editor/blocks/list.spec.js:559:2 › List (@Firefox) › should keep nested list items when merging with paragraph
[firefox] › editor/blocks/list.spec.js:1226:2 › List (@Firefox) › first empty list item is graciously removed
[firefox] › editor/various/splitting-merging.spec.js:377:2 › splitting and merging blocks (@Firefox, @WebKit) › should handle unwrapping and merging blocks with empty contents
[firefox] › editor/various/splitting-merging.spec.js:520:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on forward delete
[firefox] › editor/various/splitting-merging.spec.js:540:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on backspace
3 skipped
184 passed (11.7m)
|
The logs for this run have expired and are no longer available.
Loading