Lazy load block edit functions #98655
Annotations
11 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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L43
1) [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 - 3
+ Received + 1
<!-- 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>
- <!-- /wp:button --></div>
+ <div class="wp-block-buttons"></div>
<!-- /wp:buttons -->
41 | // Check the content.
42 | const content = await editor.getEditedPostContent();
> 43 | expect( content ).toBe(
| ^
44 | `<!-- wp:buttons -->
45 | <div class="wp-block-buttons"><!-- wp:button -->
46 | <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:43:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L43
1) [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 - 3
+ Received + 1
<!-- 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>
- <!-- /wp:button --></div>
+ <div class="wp-block-buttons"></div>
<!-- /wp:buttons -->
41 | // Check the content.
42 | const content = await editor.getEditedPostContent();
> 43 | expect( content ).toBe(
| ^
44 | `<!-- wp:buttons -->
45 | <div class="wp-block-buttons"><!-- wp:button -->
46 | <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:43:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L43
1) [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 - 3
+ Received + 1
<!-- 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>
- <!-- /wp:button --></div>
+ <div class="wp-block-buttons"></div>
<!-- /wp:buttons -->
41 | // Check the content.
42 | const content = await editor.getEditedPostContent();
> 43 | expect( content ).toBe(
| ^
44 | `<!-- wp:buttons -->
45 | <div class="wp-block-buttons"><!-- wp:button -->
46 | <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:43:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L156
2) [chromium] › editor/blocks/buttons.spec.js:141:2 › Buttons › can jump to the link editor using the keyboard shortcut
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^wordpress\\.org/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^wordpress\\.org/]')
154 | await expect(
155 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 156 | ).toBeFocused();
| ^
157 |
158 | // Check the content.
159 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:156:5
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/insert-block.ts#L29
2) [chromium] › editor/blocks/buttons.spec.js:141:2 › Buttons › can jump to the link editor using the keyboard shortcut
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: Execution context was destroyed, most likely because of a navigation.
at ../../../packages/e2e-test-utils-playwright/src/editor/insert-block.ts:29
27 | );
28 |
> 29 | await this.page.evaluate(
| ^
30 | async ( [ _blockRepresentation, _clientId ] ) => {
31 | function recursiveCreateBlock( {
32 | name,
at Editor.insertBlock (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/insert-block.ts:29:18)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:146:3
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L156
2) [chromium] › editor/blocks/buttons.spec.js:141:2 › Buttons › can jump to the link editor using the keyboard shortcut
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^wordpress\\.org/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^wordpress\\.org/]')
154 | await expect(
155 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 156 | ).toBeFocused();
| ^
157 |
158 | // Check the content.
159 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:156:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L182
3) [chromium] › editor/blocks/buttons.spec.js:169:2 › Buttons › can toggle button link settings ──
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Edit' })
============================================================
180 |
181 | // Edit link.
> 182 | await page.getByRole( 'button', { name: 'Edit' } ).click();
| ^
183 |
184 | // Open Advanced settings panel.
185 | await page
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:182:54
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L182
3) [chromium] › editor/blocks/buttons.spec.js:169:2 › Buttons › can toggle button link settings ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Edit' })
============================================================
180 |
181 | // Edit link.
> 182 | await page.getByRole( 'button', { name: 'Edit' } ).click();
| ^
183 |
184 | // Open Advanced settings panel.
185 | await page
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:182:54
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L182
3) [chromium] › editor/blocks/buttons.spec.js:169:2 › Buttons › can toggle button link settings ──
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('button', { name: 'Edit' })
============================================================
180 |
181 | // Edit link.
> 182 | await page.getByRole( 'button', { name: 'Edit' } ).click();
| ^
183 |
184 | // Open Advanced settings panel.
185 | await page
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:182:54
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L277
4) [chromium] › editor/blocks/buttons.spec.js:263:2 › Buttons › can resize width ─────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 1
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button {"width":25} -->
- <div class="wp-block-button has-custom-width wp-block-button__width-25"><a class="wp-block-button__link wp-element-button">Content</a></div>
- <!-- /wp:button --></div>
+ <div class="wp-block-buttons"><!-- wp:button {"width":25} /--></div>
<!-- /wp:buttons -->
275 | // Check the content.
276 | const content = await editor.getEditedPostContent();
> 277 | expect( content ).toBe(
| ^
278 | `<!-- wp:buttons -->
279 | <div class="wp-block-buttons"><!-- wp:button {"width":25} -->
280 | <div class="wp-block-button has-custom-width wp-block-button__width-25"><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:277:21
|
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
52 failed
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
[chromium] › editor/blocks/buttons.spec.js:141:2 › Buttons › can jump to the link editor using the keyboard shortcut
[chromium] › editor/blocks/buttons.spec.js:169:2 › Buttons › can toggle button link settings ───
[chromium] › editor/blocks/buttons.spec.js:263:2 › Buttons › can resize width ──────────────────
[chromium] › editor/blocks/buttons.spec.js:286:2 › Buttons › can apply named colors ────────────
[chromium] › editor/blocks/buttons.spec.js:316:2 › Buttons › can apply custom colors ───────────
[chromium] › editor/blocks/buttons.spec.js:349:2 › Buttons › can apply named gradient background color
[chromium] › editor/blocks/buttons.spec.js:379: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:28:2 › Code › should delete block when backspace in an empty code
[chromium] › editor/blocks/code.spec.js:42:2 › Code › should paste plain text ──────────────────
[chromium] › editor/blocks/columns.spec.js:338:3 › Columns › following paragraph › should be deleted on Backspace when empty
[chromium] › editor/blocks/columns.spec.js:357:3 › Columns › following paragraph › should only select Columns on Backspace when non-empty
[chromium] › editor/blocks/comments.spec.js:60:2 › Comments › Pagination links are working as expected
[chromium] › editor/blocks/comments.spec.js:181:2 › Comments › The editable block version is rendered if the legacy attribute is false
[chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/heading.spec.js:81:2 › Heading › should create a paragraph block above when pressing enter at the start
[chromium] › editor/blocks/heading.spec.js:102:2 › Heading › should create a paragraph block below when pressing enter at the end
[chromium] › editor/blocks/html.spec.js:11:2 › HTML block › can be created by typing "/html" ───
[chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
[chromium] › editor/blocks/list.spec.js:11:2 › List (@Firefox) › can be copied from multi selection
[chromium] › editor/blocks/list.spec.js:41:2 › List (@Firefox) › can be created by using an asterisk at the start of a paragraph block
[chromium] › editor/blocks/list.spec.js:218:2 › List (@Firefox) › should not undo asterisk transform with backspace after typing
[chromium] › editor/blocks/list.spec.js:232:2 › List (@Firefox) › should not undo asterisk transform with backspace after selection change
[chromium] › editor/blocks/list.spec.js:253:2 › List (@Firefox) › can be created by typing "/list"
[chromium] › editor/blocks/list.spec.js:382:2 › List (@Firefox) › can be converted to paragraphs
[chromium] › editor/blocks/list.spec.js:401:2 › List (@Firefox) › can be converted when nested to paragraphs
[chromium] › editor/blocks/list.spec.js:425:2 › List (@Firefox) › can be converted to a quote ──
[chromium] › editor/blocks/list.spec.js:448:2 › List (@Firefox) › should create paragraph on split at end and merge back with content
[chromium] › editor/blocks/list.spec.js:487:2 › List (@Firefox) › should split into two with paragraph and merge lists
[chromium] › editor/blocks/list.spec.js:559:2 › List (@Firefox) › should keep nested list items when merging with paragraph
[chromium] › editor/blocks/list.spec.js:624:2 › List (@Firefox) › should split into two ordered lists with paragraph
[chromium] › editor/blocks/list.spec.js:657:2 › List (@Firefox) › should split indented list item
[chromium] › editor/blocks/list.spec.js:683:2 › List (@Firefox) › should be immediately saved on indentation
[chromium] › editor/blocks/list.spec.js:718:2 › List (@Firefox) › should change the indented list type
[chromi
|
Loading