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/buttons.spec.js#L100
1) [chromium] › editor/blocks/buttons.spec.js:82:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^example\\.com/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^example\\.com/]')
98 | await expect(
99 | page.locator( 'role=link[name=/^example\\.com/]' )
> 100 | ).toBeFocused();
| ^
101 | await page.keyboard.press( 'Escape' );
102 |
103 | // Focus should move from the link control to the button block's text.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:100:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L100
1) [chromium] › editor/blocks/buttons.spec.js:82:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^example\\.com/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^example\\.com/]')
98 | await expect(
99 | page.locator( 'role=link[name=/^example\\.com/]' )
> 100 | ).toBeFocused();
| ^
101 | await page.keyboard.press( 'Escape' );
102 |
103 | // Focus should move from the link control to the button block's text.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:100:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L100
1) [chromium] › editor/blocks/buttons.spec.js:82:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^example\\.com/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^example\\.com/]')
98 | await expect(
99 | page.locator( 'role=link[name=/^example\\.com/]' )
> 100 | ).toBeFocused();
| ^
101 | await page.keyboard.press( 'Escape' );
102 |
103 | // Focus should move from the link control to the button block's text.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:100:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L137
2) [chromium] › editor/blocks/buttons.spec.js:114:2 › Buttons › appends http protocol to links added which are missing a protocol
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('role=combobox[name="Link"i]')
Expected string: "http://example.com"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('role=combobox[name="Link"i]')
135 |
136 | // Check the value of the URL input has had http:// prepended.
> 137 | await expect( urlInput ).toHaveValue( 'http://example.com' );
| ^
138 | } );
139 |
140 | test( 'can jump to the link editor using the keyboard shortcut', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:137:28
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L137
2) [chromium] › editor/blocks/buttons.spec.js:114:2 › Buttons › appends http protocol to links added which are missing a protocol
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('role=combobox[name="Link"i]')
Expected string: "http://example.com"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('role=combobox[name="Link"i]')
135 |
136 | // Check the value of the URL input has had http:// prepended.
> 137 | await expect( urlInput ).toHaveValue( 'http://example.com' );
| ^
138 | } );
139 |
140 | test( 'can jump to the link editor using the keyboard shortcut', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:137:28
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L137
2) [chromium] › editor/blocks/buttons.spec.js:114:2 › Buttons › appends http protocol to links added which are missing a protocol
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('role=combobox[name="Link"i]')
Expected string: "http://example.com"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('role=combobox[name="Link"i]')
135 |
136 | // Check the value of the URL input has had http:// prepended.
> 137 | await expect( urlInput ).toHaveValue( 'http://example.com' );
| ^
138 | } );
139 |
140 | test( 'can jump to the link editor using the keyboard shortcut', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:137:28
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L154
3) [chromium] › editor/blocks/buttons.spec.js:140: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/]')
152 | await expect(
153 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 154 | ).toBeFocused();
| ^
155 |
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:154:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L154
3) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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/]')
152 | await expect(
153 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 154 | ).toBeFocused();
| ^
155 |
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:154:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L154
3) [chromium] › editor/blocks/buttons.spec.js:140: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/]')
152 | await expect(
153 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 154 | ).toBeFocused();
| ^
155 |
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:154:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L189
4) [chromium] › editor/blocks/buttons.spec.js:167:2 › Buttons › can toggle button link settings ──
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Advanced' })
============================================================
187 | name: 'Advanced',
188 | } )
> 189 | .click();
| ^
190 |
191 | const newTabCheckbox = page.getByLabel( 'Open in new tab' );
192 | const noFollowCheckbox = page.getByLabel( 'nofollow' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:189:5
|
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
26 failed
[chromium] › editor/blocks/buttons.spec.js:82:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted
[chromium] › editor/blocks/buttons.spec.js:114:2 › Buttons › appends http protocol to links added which are missing a protocol
[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:167:2 › Buttons › can toggle button link settings ───
[chromium] › editor/blocks/cover.spec.js:197:2 › Cover › dims the background image down by 50% black when transformed from the Image block
[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/image.spec.js:35:2 › Image › can be inserted via image upload ───────
[chromium] › editor/blocks/image.spec.js:64:2 › Image › should place caret on caption when clicking to add one
[chromium] › editor/blocks/image.spec.js:95:2 › Image › should allow soft line breaks in caption
[chromium] › editor/blocks/image.spec.js:127:2 › Image › should have keyboard navigable toolbar for caption
[chromium] › editor/blocks/image.spec.js:183:2 › Image › should drag and drop files into media placeholder
[chromium] › editor/blocks/image.spec.js:227:2 › Image › allows zooming using the crop tools ───
[chromium] › editor/blocks/image.spec.js:296:2 › Image › allows changing aspect ratio using the crop tools
[chromium] › editor/blocks/image.spec.js:355:2 › Image › allows rotating using the crop tools ──
[chromium] › editor/blocks/image.spec.js:394:2 › Image › should undo without broken temporary state
[chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
[chromium] › editor/blocks/image.spec.js:518:2 › Image › should allow dragging and dropping HTML to media placeholder
[chromium] › editor/blocks/image.spec.js:578:2 › Image › image inserted via upload should appear in the frontend published post content
[chromium] › editor/blocks/image.spec.js:616:2 › Image › image inserted via link should appear in the frontend published post content
[chromium] › editor/blocks/image.spec.js:658:2 › Image › adding a link should reflect configuration in published post content
[chromium] › editor/blocks/image.spec.js:696:2 › Image › should upload external image to media library
[chromium] › editor/blocks/image.spec.js:717:2 › Image › should upload through prepublish panel
[chromium] › editor/blocks/image.spec.js:746:2 › Image › should have keyboard navigable link UI popover
[chromium] › editor/blocks/image.spec.js:1417:2 › Image - Site editor › can be inserted via image upload
[chromium] › editor/blocks/list.spec.js:713:2 › List (@Firefox) › should create paragraph on Enter in quote block
11 skipped
147 passed (22.6m)
|
Loading