Block editor: hooks: manage save props in one place #90853
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L158
4) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button -->
- <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.wordpress.org/">WordPress</a></div>
+ <div><!-- wp:button -->
+ <div><a class="wp-block-button__link wp-element-button" href="https://www.wordpress.org/">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
> 158 | expect( content ).toBe(
| ^
159 | `<!-- wp:buttons -->
160 | <div class="wp-block-buttons"><!-- wp:button -->
161 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.wordpress.org/">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:158:21
|
Run the tests
21 failed
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ────────
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
[chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
[chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
[chromium] › editor/blocks/buttons.spec.js:260:2 › Buttons › can resize width ──────────────────
[chromium] › editor/blocks/buttons.spec.js:282:2 › Buttons › can apply named colors ────────────
[chromium] › editor/blocks/buttons.spec.js:311:2 › Buttons › can apply custom colors ───────────
[chromium] › editor/blocks/buttons.spec.js:343:2 › Buttons › can apply named gradient background color
[chromium] › editor/blocks/buttons.spec.js:372:2 › Buttons › can apply custom gradient background color
[chromium] › editor/blocks/code.spec.js:11:2 › Code › can be created by three backticks and enter
[chromium] › editor/blocks/code.spec.js:39:2 › Code › should paste plain text ──────────────────
[chromium] › editor/blocks/gallery.spec.js:42:2 › Gallery › can be transformed from pasting shortcode, and can undo/redo
[chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
[chromium] › editor/blocks/group.spec.js:11:2 › Group › can be created using the block inserter
[chromium] › editor/blocks/group.spec.js:41:2 › Group › can be created using the slash inserter
[chromium] › editor/blocks/group.spec.js:64:2 › Group › can have other blocks appended to it using the button appender
[chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/image.spec.js:35:2 › Image › can be inserted via image upload ───────
[chromium] › editor/blocks/image.spec.js:394:2 › Image › should undo without broken temporary state
[chromium] › editor/blocks/list.spec.js:395:2 › List (@Firefox) › can be converted to a quote ──
[chromium] › editor/blocks/list.spec.js:713:2 › List (@Firefox) › should create paragraph on Enter in quote block
11 skipped
130 passed (12.1m)
|
The logs for this run have expired and are no longer available.
Loading