Fix unable to remove empty blocks on merge (#65262) #115614
Annotations
10 errors and 1 notice
test/e2e/specs/editor/various/splitting-merging.spec.js#L411
1) [webkit] › 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
1) [webkit] › 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
1) [webkit] › 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
2) [webkit] › 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
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L530
2) [webkit] › 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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L530
2) [webkit] › 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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L551
3) [webkit] › 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
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",
},
549 | await page.keyboard.press( 'Backspace' );
550 |
> 551 | expect( await editor.getBlocks() ).toMatchObject( snap1 );
| ^
552 |
553 | await page.keyboard.press( 'Backspace' );
554 | // 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:551:39
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L551
3) [webkit] › 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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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",
},
549 | await page.keyboard.press( 'Backspace' );
550 |
> 551 | expect( await editor.getBlocks() ).toMatchObject( snap1 );
| ^
552 |
553 | await page.keyboard.press( 'Backspace' );
554 | // 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:551:39
|
test/e2e/specs/editor/various/splitting-merging.spec.js#L551
3) [webkit] › 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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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",
},
549 | await page.keyboard.press( 'Backspace' );
550 |
> 551 | expect( await editor.getBlocks() ).toMatchObject( snap1 );
| ^
552 |
553 | await page.keyboard.press( 'Backspace' );
554 | // 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:551:39
|
|
3 failed
[webkit] › editor/various/splitting-merging.spec.js:377:2 › splitting and merging blocks (@Firefox, @WebKit) › should handle unwrapping and merging blocks with empty contents
[webkit] › 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
[webkit] › 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
197 passed (11.3m)
|
The logs for this run have expired and are no longer available.
Loading