Lazy load block edit functions #98655
Annotations
12 errors, 1 warning, and 1 notice
Archive debug artifacts (screenshots, traces)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Archive flaky tests report
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L27
1) [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: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:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L27
1) [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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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: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-retry1/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:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L27
1) [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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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: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-retry2/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:
packages/e2e-test-utils-playwright/src/editor/save-draft.ts#L14
2) [chromium] › editor/plugins/post-type-templates.spec.js:30:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (single block removal)
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor top bar' }).getByRole('button', { name: 'Save draft' })
locator resolved to <button type="button" aria-disabled="true" aria-label="S…>Save draft</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
at ../../../packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14
12 | .getByRole( 'region', { name: 'Editor top bar' } )
13 | .getByRole( 'button', { name: 'Save draft' } )
> 14 | .click();
| ^
15 |
16 | await this.page
17 | .getByRole( 'button', { name: 'Dismiss this notice' } )
at Editor.saveDraft (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14:4)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:43:17
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/save-draft.ts#L14
2) [chromium] › editor/plugins/post-type-templates.spec.js:30:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (single block removal)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor top bar' }).getByRole('button', { name: 'Save draft' })
locator resolved to <button type="button" aria-disabled="true" aria-label="S…>Save draft</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
at ../../../packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14
12 | .getByRole( 'region', { name: 'Editor top bar' } )
13 | .getByRole( 'button', { name: 'Save draft' } )
> 14 | .click();
| ^
15 |
16 | await this.page
17 | .getByRole( 'button', { name: 'Dismiss this notice' } )
at Editor.saveDraft (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14:4)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:43:17
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/save-draft.ts#L14
2) [chromium] › editor/plugins/post-type-templates.spec.js:30:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (single block removal)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor top bar' }).getByRole('button', { name: 'Save draft' })
locator resolved to <button type="button" aria-disabled="true" aria-label="S…>Save draft</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
at ../../../packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14
12 | .getByRole( 'region', { name: 'Editor top bar' } )
13 | .getByRole( 'button', { name: 'Save draft' } )
> 14 | .click();
| ^
15 |
16 | await this.page
17 | .getByRole( 'button', { name: 'Dismiss this notice' } )
at Editor.saveDraft (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/save-draft.ts:14:4)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:43:17
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L73
3) [chromium] › editor/plugins/post-type-templates.spec.js:57:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (full delete)
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- 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: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 -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
71 | await page.reload();
72 |
> 73 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
74 | } );
75 | } );
76 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:73:53
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L73
3) [chromium] › editor/plugins/post-type-templates.spec.js:57:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (full delete)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- 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: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 -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
71 | await page.reload();
72 |
> 73 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
74 | } );
75 | } );
76 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:73:53
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-templates.spec.js#L73
3) [chromium] › editor/plugins/post-type-templates.spec.js:57:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (full delete)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- 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: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 -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
71 | await page.reload();
72 |
> 73 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
74 | } );
75 | } );
76 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-templates.spec.js:73:53
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L70
4) [chromium] › editor/various/block-bindings.spec.js:50:4 › Block bindings › Template context › Paragraph › should show the value of the custom field
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' })
Expected string: "text_custom_field"
Received string: "paragraph default content"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' })
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
- locator resolved to <p role="document" data-empty="false" aria-multilin…>paragraph default content</p>
- unexpected value "paragraph default content"
68 | name: 'Block: Paragraph',
69 | } );
> 70 | await expect( paragraphBlock ).toHaveText(
| ^
71 | 'text_custom_field'
72 | );
73 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:70:36
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run the tests
46 failed
[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:30:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (single block removal)
[chromium] › editor/plugins/post-type-templates.spec.js:57:3 › Post type templates › Using a CPT with a predefined template › Should respect user edits to not re-apply template after save (full delete)
[chromium] › editor/various/block-bindings.spec.js:50:4 › Block bindings › Template context › Paragraph › should show the value of the custom field
[chromium] › editor/various/block-bindings.spec.js:75:4 › Block bindings › Template context › Paragraph › should lock the appropriate controls with a registered source
[chromium] › editor/various/block-bindings.spec.js:121:4 › Block bindings › Template context › Paragraph › should lock the appropriate controls when source is not defined
[chromium] › editor/various/block-bindings.spec.js:169:4 › Block bindings › Template context › Heading › should show the key of the custom field
[chromium] › editor/various/block-bindings.spec.js:192:4 › Block bindings › Template context › Heading › should lock the appropriate controls with a registered source
[chromium] › editor/various/block-bindings.spec.js:238:4 › Block bindings › Template context › Heading › should lock the appropriate controls when source is not defined
[chromium] › editor/various/block-bindings.spec.js:286:4 › Block bindings › Template context › Button › should show the key of the custom field when text is bound
[chromium] › editor/various/block-bindings.spec.js:316:4 › Block bindings › Template context › Button › should lock text controls when text is bound to a registered source
[chromium] › editor/various/block-bindings.spec.js:378:4 › Block bindings › Template context › Button › should lock text controls when text is bound to an undefined source
[chromium] › editor/various/block-bindings.spec.js:500:4 › Block bindings › Template context › Button › should lock url controls when url is bound to an undefined source
[chromium] › editor/various/block-bindings.spec.js:560:4 › Block bindings › Template context › Button › should lock url and text controls when both are bound
[chromium] › editor/various/block-bindings.spec.js:840:4 › Block bindings › Template context › Image › should disable alt textarea when alt is bound to a registered source
[chromium] › editor/various/block-bindings.spec.js:966:4 › Block bindings › Template context › Image › should disable title input when title is bound to a registered source
[chromium] › editor/various/block-bindings.spec.js:1092:4 › Block bindings › Template context › Image › Multiple bindings should lock the appropriate controls
[chromium] › editor/various/block-bindings.spec.js:1171:4 › Block bindings › Post/page context › Paragraph › should show the value of the custom field when exists
[chromium] › editor/various/block-bindings.spec.js:1213:4 › Block bindings › Post/page context › Paragraph › should show the value of the key when custom field doesn't exist
[chromium] › editor/various/block-bindings.spec.js:1252:4 › Block bindings › Post/page context › Paragraph › should not show the value of a protected meta field
[chromium] › editor/various/block-bindings.spec.js:1283:4 › Block bindings › Post/page context › Paragraph › should not show the value of a meta field with `show_in_rest` false
[chromium] › editor/various/block-bindings.spec.js:1316:4 › Block bindings › Post/page context › Paragraph › should add empty paragraph block when pressing enter
[chromium] › editor/various/block-bindings.spec.js:1348:4 › Block bindings › Post/page context › Heading › should show the value of the custom field
[chromium] › editor/various/block-bindings.spec.js:1390:4 › Block bindings
|
Loading