Block editor: hooks: manage save props in one place #90853
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L33
1) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:26:2 › Deprecated Node Matcher › should insert block with node source
Error: Snapshot comparison failed:
<!-- wp:deprecated-node-matcher -->
<blockquote class="wp-block-deprecated-node-matcher"><p>test</p><p></p></blockquote>
<!-- /wp:deprecated-node-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Deprecated-Node-Matcher-should-insert-block-with-node-source-chromium/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-actual.txt
31 | await page.keyboard.type( 'test' );
32 | await page.keyboard.press( 'Enter' );
> 33 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
34 | } );
35 |
36 | test( 'should insert block with children source', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:33:49
|
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L33
1) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:26:2 › Deprecated Node Matcher › should insert block with node source
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:deprecated-node-matcher -->
<blockquote class="wp-block-deprecated-node-matcher"><p>test</p><p></p></blockquote>
<!-- /wp:deprecated-node-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Deprecated-Node-Matcher-should-insert-block-with-node-source-chromium-retry1/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-actual.txt
31 | await page.keyboard.type( 'test' );
32 | await page.keyboard.press( 'Enter' );
> 33 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
34 | } );
35 |
36 | test( 'should insert block with children source', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:33:49
|
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L33
1) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:26:2 › Deprecated Node Matcher › should insert block with node source
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:deprecated-node-matcher -->
<blockquote class="wp-block-deprecated-node-matcher"><p>test</p><p></p></blockquote>
<!-- /wp:deprecated-node-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Deprecated-Node-Matcher-should-insert-block-with-node-source-chromium-retry2/Deprecated-Node-Matcher-should-insert-block-with-node-source-1-actual.txt
31 | await page.keyboard.type( 'test' );
32 | await page.keyboard.press( 'Enter' );
> 33 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
34 | } );
35 |
36 | test( 'should insert block with children source', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:33:49
|
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L51
2) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:36:2 › Deprecated Node Matcher › should insert block with children source
Error: Snapshot comparison failed:
<!-- wp:deprecated-children-matcher -->
<p class="wp-block-deprecated-children-matcher">test<br/><strong>a</strong></p>
<!-- /wp:deprecated-children-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Depreca-32dc3-atcher-should-insert-block-with-children-source-chromium/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-actual.txt
49 | await page.keyboard.up( 'Shift' );
50 | await pageUtils.pressKeys( 'primary+b' );
> 51 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
52 | } );
53 | } );
54 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:51:49
|
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L51
2) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:36:2 › Deprecated Node Matcher › should insert block with children source
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:deprecated-children-matcher -->
<p class="wp-block-deprecated-children-matcher">test<br/><strong>a</strong></p>
<!-- /wp:deprecated-children-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Depreca-32dc3-atcher-should-insert-block-with-children-source-chromium-retry1/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-actual.txt
49 | await page.keyboard.up( 'Shift' );
50 | await pageUtils.pressKeys( 'primary+b' );
> 51 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
52 | } );
53 | } );
54 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:51:49
|
Run the tests:
test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js#L51
2) [chromium] › editor/plugins/deprecated-node-matcher.spec.js:36:2 › Deprecated Node Matcher › should insert block with children source
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:deprecated-children-matcher -->
<p class="wp-block-deprecated-children-matcher">test<br/><strong>a</strong></p>
<!-- /wp:deprecated-children-matcher -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-deprecated-node-matcher-Depreca-32dc3-atcher-should-insert-block-with-children-source-chromium-retry2/Deprecated-Node-Matcher-should-insert-block-with-children-source-1-actual.txt
49 | await page.keyboard.up( 'Shift' );
50 | await pageUtils.pressKeys( 'primary+b' );
> 51 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
52 | } );
53 | } );
54 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/deprecated-node-matcher.spec.js:51:49
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-block.spec.js#L20
3) [chromium] › editor/plugins/iframed-block.spec.js:16:2 › Iframed block › should load script and dependencies in iframe
Error: Snapshot comparison failed:
<!-- wp:test/iframed-block -->
<p class="wp-block-test-iframed-block">Iframed Block (saved)</p>
<!-- /wp:test/iframed-block -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Iframed-block-should-load-script-and-dependencies-in-iframe-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-iframed-block-Iframed-block-should-load-script-and-dependencies-in-iframe-chromium/Iframed-block-should-load-script-and-dependencies-in-iframe-1-actual.txt
18 | } ) => {
19 | await editor.insertBlock( { name: 'test/iframed-block' } );
> 20 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
21 |
22 | // Expect the script to load in the iframe, which replaces the block text.
23 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-block.spec.js:20:49
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-block.spec.js#L20
3) [chromium] › editor/plugins/iframed-block.spec.js:16:2 › Iframed block › should load script and dependencies in iframe
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:test/iframed-block -->
<p class="wp-block-test-iframed-block">Iframed Block (saved)</p>
<!-- /wp:test/iframed-block -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Iframed-block-should-load-script-and-dependencies-in-iframe-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-iframed-block-Iframed-block-should-load-script-and-dependencies-in-iframe-chromium-retry1/Iframed-block-should-load-script-and-dependencies-in-iframe-1-actual.txt
18 | } ) => {
19 | await editor.insertBlock( { name: 'test/iframed-block' } );
> 20 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
21 |
22 | // Expect the script to load in the iframe, which replaces the block text.
23 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-block.spec.js:20:49
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-block.spec.js#L20
3) [chromium] › editor/plugins/iframed-block.spec.js:16:2 › Iframed block › should load script and dependencies in iframe
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:test/iframed-block -->
<p class="wp-block-test-iframed-block">Iframed Block (saved)</p>
<!-- /wp:test/iframed-block -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Iframed-block-should-load-script-and-dependencies-in-iframe-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-iframed-block-Iframed-block-should-load-script-and-dependencies-in-iframe-chromium-retry2/Iframed-block-should-load-script-and-dependencies-in-iframe-1-actual.txt
18 | } ) => {
19 | await editor.insertBlock( { name: 'test/iframed-block' } );
> 20 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
21 |
22 | // Expect the script to load in the iframe, which replaces the block text.
23 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-block.spec.js:20:49
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L27
4) [chromium] › editor/plugins/post-type-templates.spec.js:24:3 › Post type templates › Using a CPT with a predefined template › Should add a custom post types with a predefined template
Error: Snapshot comparison failed:
<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->
<!-- wp:paragraph {"placeholder":"Add a book description"} -->
<p></p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class="wp-block-quote"><!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph --></blockquote>
<!-- /wp:quote -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:column -->
<div><!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph {"placeholder":"Add a inner paragraph"} -->
<p></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/__snapshots__/Post-type-templates-Using-a-CPT-with-a-predefi-fffe1--custom-post-types-with-a-predefined-template-1-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-plugins-post-type-templates-Post-type-t-150e1--a-custom-post-types-with-a-predefined-template-chromium/Post-type-templates-Using-a-CPT-with-a-predefi-fffe1--custom-post-types-with-a-predefined-template-1-actual.txt
25 | editor,
26 | } ) => {
> 27 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
28 | } );
29 |
30 | test( 'Should respect user edits to not re-apply template after save (single block removal)', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:27:50
|
Run the tests
5 failed
[chromium] › editor/plugins/deprecated-node-matcher.spec.js:26:2 › Deprecated Node Matcher › should insert block with node source
[chromium] › editor/plugins/deprecated-node-matcher.spec.js:36:2 › Deprecated Node Matcher › should insert block with children source
[chromium] › editor/plugins/iframed-block.spec.js:16:2 › Iframed block › should load script and dependencies in iframe
[chromium] › editor/plugins/post-type-templates.spec.js:24:3 › Post type templates › Using a CPT with a predefined template › Should add a custom post types with a predefined template
[chromium] › editor/plugins/post-type-templates.spec.js:98:3 › Post type templates › With default post format assigned › should populate new post with default block for format
124 passed (7.4m)
|
The logs for this run have expired and are no longer available.
Loading