Block Bindings: Explore improving block bindings UI useSelect
logic
#121793
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
13 | await expect(
14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 15 | ).toBeFocused();
| ^
16 | await page.keyboard.type( 'Content' );
17 |
18 | // Check the content.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
13 | await expect(
14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 15 | ).toBeFocused();
| ^
16 | await page.keyboard.type( 'Content' );
17 |
18 | // Check the content.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
13 | await expect(
14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 15 | ).toBeFocused();
| ^
16 | await page.keyboard.type( 'Content' );
17 |
18 | // Check the content.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [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 - 5
+ Received + 7
- <!-- 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:paragraph -->
+ <p></p>
+ <!-- /wp:paragraph -->
+
- <!-- /wp:button --></div>
+ <!-- wp:paragraph -->
+ <p></p>
- <!-- /wp:buttons -->
+ <!-- /wp:paragraph -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <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:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [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 - 5
+ Received + 7
- <!-- 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:paragraph -->
+ <p></p>
+ <!-- /wp:paragraph -->
+
- <!-- /wp:button --></div>
+ <!-- wp:paragraph -->
+ <p></p>
- <!-- /wp:buttons -->
+ <!-- /wp:paragraph -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <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:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [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 - 5
+ Received + 7
- <!-- 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:paragraph -->
+ <p></p>
+ <!-- /wp:paragraph -->
+
- <!-- /wp:button --></div>
+ <!-- wp:paragraph -->
+ <p></p>
- <!-- /wp:buttons -->
+ <!-- /wp:paragraph -->
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <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:42:21
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L60
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
58 | await expect(
59 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 60 | ).toBeFocused();
| ^
61 | await pageUtils.pressKeys( 'primary+k' );
62 | await expect(
63 | page.locator( 'role=combobox[name="Search or type URL"i]' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:60:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L60
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
58 | await expect(
59 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 60 | ).toBeFocused();
| ^
61 | await pageUtils.pressKeys( 'primary+k' );
62 | await expect(
63 | page.locator( 'role=combobox[name="Search or type URL"i]' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:60:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L60
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
58 | await expect(
59 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 60 | ).toBeFocused();
| ^
61 | await pageUtils.pressKeys( 'primary+k' );
62 | await expect(
63 | page.locator( 'role=combobox[name="Search or type URL"i]' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:60:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L91
4) [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('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
Expected: focused
Received: <element(s) not found>
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=textbox[name="Button text"i]')
89 | await expect(
90 | editor.canvas.locator( 'role=textbox[name="Button text"i]' )
> 91 | ).toBeFocused();
| ^
92 | await pageUtils.pressKeys( 'primary+k' );
93 | await expect(
94 | page.locator( 'role=combobox[name="Search or type URL"i]' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:91:5
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
115 failed
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ────────
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
[chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
[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:142: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:262:2 › Buttons › can resize width ──────────────────
[chromium] › editor/blocks/buttons.spec.js:284:2 › Buttons › can apply named colors ────────────
[chromium] › editor/blocks/buttons.spec.js:313:2 › Buttons › can apply custom colors ───────────
[chromium] › editor/blocks/buttons.spec.js:345:2 › Buttons › can apply named gradient background color
[chromium] › editor/blocks/buttons.spec.js:374: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/columns.spec.js:124:2 › Columns › can exit on Enter ─────────────────
[chromium] › editor/blocks/columns.spec.js:245:2 › Columns › should not split in middle ────────
[chromium] › editor/blocks/columns.spec.js:355:3 › Columns › following paragraph › should only select Columns on Backspace when non-empty
[chromium] › editor/blocks/cover.spec.js:97:2 › Cover › can have the title edited ──────────────
[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/cover.spec.js:230:2 › Cover › other cover blocks are not over the navigation block when the menu is open
[chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
[chromium] › editor/blocks/gallery.spec.js:158:2 › Gallery › uploaded images' captions can be edited
[chromium] › editor/blocks/group.spec.js:38:2 › Group › can be created using the slash inserter
[chromium] › editor/blocks/group.spec.js:61:2 › Group › can have other blocks appended to it using the button appender
[chromium] › editor/blocks/group.spec.js:80:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
[chromium] › editor/blocks/heading.spec.js:28:2 › Heading › can be created by prefixing existing content with number signs and a space
[chromium] › editor/blocks/heading.spec.js:47:2 › Heading › should not work with the list input rule
[chromium] › editor/blocks/heading.spec.js:64:2 › Heading › should work with the format input rules
[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/heading.spec.js:134:2 › Heading › should transform to a paragraph block when pressing backspace at the beginning of the first heading block
[chromium] › editor/blocks/heading.spec.js:151:2 › Heading › should keep the heading when there is an empty paragraph block before and backspace is pressed at the start
[chromium] › editor/blocks/heading.spec.js:169:2 › Heading › should correctly apply custom colors
[chromium] › editor/blocks/heading.spec.js:206:2 › Heading › should correctly apply named colors
[chromium] › editor/blocks/heading.spec.js:242:2 › Headi
|
Loading