Block bindings: Don't use useEffect
in the block bindings editor hook
#98216
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/paragraph.spec.js#L92
1) [chromium] › editor/blocks/paragraph.spec.js:62:3 › Paragraph › Empty paragraph › should allow dropping an image on an empty paragraph block
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
Expected pattern: /10x10_e2e_test_image_z9T8jK\.png/
Received string: "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
- locator resolved to <img src="blob:http://localhost:8889/6f2ac106-3ebd-40…/>
- unexpected value "blob:http://localhost:8889/6f2ac106-3ebd-4020-9c4a-25875bc68403"
90 | );
91 | await expect( imageBlock ).toBeVisible();
> 92 | await expect( imageBlock.locator( 'role=img' ) ).toHaveAttribute(
| ^
93 | 'src',
94 | new RegExp( testImageName.replace( '.', '\\.' ) )
95 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:92:53
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L92
1) [chromium] › editor/blocks/paragraph.spec.js:62:3 › Paragraph › Empty paragraph › should allow dropping an image on an empty paragraph block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
Expected pattern: /10x10_e2e_test_image_z9T8jK\.png/
Received string: "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
- locator resolved to <img src="blob:http://localhost:8889/4dc83658-ca8d-4d…/>
- unexpected value "blob:http://localhost:8889/4dc83658-ca8d-4d6b-a220-5a81d41bdcb4"
90 | );
91 | await expect( imageBlock ).toBeVisible();
> 92 | await expect( imageBlock.locator( 'role=img' ) ).toHaveAttribute(
| ^
93 | 'src',
94 | new RegExp( testImageName.replace( '.', '\\.' ) )
95 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:92:53
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L92
1) [chromium] › editor/blocks/paragraph.spec.js:62:3 › Paragraph › Empty paragraph › should allow dropping an image on an empty paragraph block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
Expected pattern: /10x10_e2e_test_image_z9T8jK\.png/
Received string: "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Image"i]').locator('role=img')
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
- locator resolved to <img src="blob:http://localhost:8889/69dcd1f4-cdfc-4b…/>
- unexpected value "blob:http://localhost:8889/69dcd1f4-cdfc-4b5b-94bf-adae77fd1677"
90 | );
91 | await expect( imageBlock ).toBeVisible();
> 92 | await expect( imageBlock.locator( 'role=img' ) ).toHaveAttribute(
| ^
93 | 'src',
94 | new RegExp( testImageName.replace( '.', '\\.' ) )
95 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:92:53
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L43
2) [chromium] › editor/blocks/quote.spec.js:31:2 › Quote › can be created by using > at the start of a paragraph block
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 4
<!-- wp:quote -->
- <blockquote class="wp-block-quote"><!-- wp:paragraph -->
- <p>A quote</p>
+ <blockquote class="wp-block-quote"></blockquote>
- <!-- /wp:paragraph -->
+ <!-- /wp:quote -->
<!-- wp:paragraph -->
- <p>Another paragraph</p>
+ <p>A quoteAnother paragraph</p>
- <!-- /wp:paragraph --></blockquote>
- <!-- /wp:quote -->
+ <!-- /wp:paragraph -->
41 | await page.keyboard.press( 'Enter' );
42 | await page.keyboard.type( 'Another paragraph' );
> 43 | expect( await editor.getEditedPostContent() ).toBe(
| ^
44 | `<!-- wp:quote -->
45 | <blockquote class="wp-block-quote"><!-- wp:paragraph -->
46 | <p>A quote</p>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:43:49
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L43
2) [chromium] › editor/blocks/quote.spec.js:31:2 › Quote › can be created by using > at the start of a paragraph block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 4
<!-- wp:quote -->
- <blockquote class="wp-block-quote"><!-- wp:paragraph -->
- <p>A quote</p>
+ <blockquote class="wp-block-quote"></blockquote>
- <!-- /wp:paragraph -->
+ <!-- /wp:quote -->
<!-- wp:paragraph -->
- <p>Another paragraph</p>
+ <p>A quoteAnother paragraph</p>
- <!-- /wp:paragraph --></blockquote>
- <!-- /wp:quote -->
+ <!-- /wp:paragraph -->
41 | await page.keyboard.press( 'Enter' );
42 | await page.keyboard.type( 'Another paragraph' );
> 43 | expect( await editor.getEditedPostContent() ).toBe(
| ^
44 | `<!-- wp:quote -->
45 | <blockquote class="wp-block-quote"><!-- wp:paragraph -->
46 | <p>A quote</p>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:43:49
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L43
2) [chromium] › editor/blocks/quote.spec.js:31:2 › Quote › can be created by using > at the start of a paragraph block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 6
+ Received + 4
<!-- wp:quote -->
- <blockquote class="wp-block-quote"><!-- wp:paragraph -->
- <p>A quote</p>
+ <blockquote class="wp-block-quote"></blockquote>
- <!-- /wp:paragraph -->
+ <!-- /wp:quote -->
<!-- wp:paragraph -->
- <p>Another paragraph</p>
+ <p>A quoteAnother paragraph</p>
- <!-- /wp:paragraph --></blockquote>
- <!-- /wp:quote -->
+ <!-- /wp:paragraph -->
41 | await page.keyboard.press( 'Enter' );
42 | await page.keyboard.type( 'Another paragraph' );
> 43 | expect( await editor.getEditedPostContent() ).toBe(
| ^
44 | `<!-- wp:quote -->
45 | <blockquote class="wp-block-quote"><!-- wp:paragraph -->
46 | <p>A quote</p>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:43:49
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L124
3) [chromium] › editor/blocks/quote.spec.js:111:2 › Quote › can be created by converting multiple paragraphs
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=one')
============================================================
122 | await editor.canvas
123 | .locator( 'role=document[name="Block: Paragraph"i] >> text=one' )
> 124 | .click();
| ^
125 | await page.keyboard.up( 'Shift' );
126 | await editor.transformBlockTo( 'core/quote' );
127 | expect( await editor.getEditedPostContent() ).toBe(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:124:5
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L124
3) [chromium] › editor/blocks/quote.spec.js:111:2 › Quote › can be created by converting multiple paragraphs
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=one')
============================================================
122 | await editor.canvas
123 | .locator( 'role=document[name="Block: Paragraph"i] >> text=one' )
> 124 | .click();
| ^
125 | await page.keyboard.up( 'Shift' );
126 | await editor.transformBlockTo( 'core/quote' );
127 | expect( await editor.getEditedPostContent() ).toBe(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:124:5
|
Run the tests:
test/e2e/specs/editor/blocks/quote.spec.js#L124
3) [chromium] › editor/blocks/quote.spec.js:111:2 › Quote › can be created by converting multiple paragraphs
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=one')
============================================================
122 | await editor.canvas
123 | .locator( 'role=document[name="Block: Paragraph"i] >> text=one' )
> 124 | .click();
| ^
125 | await page.keyboard.up( 'Shift' );
126 | await editor.transformBlockTo( 'core/quote' );
127 | expect( await editor.getEditedPostContent() ).toBe(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:124:5
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/click-block-options-menu-item.ts#L17
4) [chromium] › editor/blocks/quote.spec.js:141:3 › Quote › can be converted to paragraphs › and renders one paragraph block per <p> within quote
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('menu', { name: 'Options' }).getByRole('menuitem', { name: 'Ungroup' })
============================================================
at ../../../packages/e2e-test-utils-playwright/src/editor/click-block-options-menu-item.ts:17
15 | .getByRole( 'menu', { name: 'Options' } )
16 | .getByRole( 'menuitem', { name: label } )
> 17 | .click();
| ^
18 | }
19 |
at Editor.clickBlockOptionsMenuItem (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-options-menu-item.ts:17:4)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/quote.spec.js:151:4
|
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
13 failed
[chromium] › editor/blocks/paragraph.spec.js:62:3 › Paragraph › Empty paragraph › should allow dropping an image on an empty paragraph block
[chromium] › editor/blocks/quote.spec.js:31:2 › Quote › can be created by using > at the start of a paragraph block
[chromium] › editor/blocks/quote.spec.js:111:2 › Quote › can be created by converting multiple paragraphs
[chromium] › editor/blocks/quote.spec.js:141:3 › Quote › can be converted to paragraphs › and renders one paragraph block per <p> within quote
[chromium] › editor/blocks/quote.spec.js:163:3 › Quote › can be converted to paragraphs › and renders a paragraph for the cite, if it exists
[chromium] › editor/blocks/quote.spec.js:236:2 › Quote › can be converted to a pullquote ───────
[chromium] › editor/blocks/quote.spec.js:251:2 › Quote › can be split at the end ───────────────
[chromium] › editor/plugins/annotations.spec.js:31:2 › Annotations › allows a block to be annotated
[chromium] › editor/plugins/annotations.spec.js:61:2 › Annotations › keeps the cursor in the same location when applying annotation
[chromium] › editor/plugins/annotations.spec.js:87:2 › Annotations › moves when typing before it
[chromium] › editor/plugins/annotations.spec.js:125:2 › Annotations › grows when typing inside it
[chromium] › editor/plugins/hooks-api.spec.js:37:2 › Using Hooks API › Pressing reset block button resets the block
[chromium] › editor/plugins/image-size.spec.js:25:2 › changing image size › should insert and change my image size
1 skipped
142 passed (13.5m)
|
Loading