(POC) Block Bindings: edit external prop value/block attribute #98446
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L112
1) [chromium] › editor/various/block-bindings.spec.js:75:4 › Block bindings › Template context › Paragraph › should lock the appropriate controls with a registered source
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
110 | name: 'Bold',
111 | } )
> 112 | ).toBeHidden();
| ^
113 |
114 | // Paragraph is not editable.
115 | await expect( paragraphBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:112:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L112
1) [chromium] › editor/various/block-bindings.spec.js:75:4 › Block bindings › Template context › Paragraph › should lock the appropriate controls with a registered source
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
110 | name: 'Bold',
111 | } )
> 112 | ).toBeHidden();
| ^
113 |
114 | // Paragraph is not editable.
115 | await expect( paragraphBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:112:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L112
1) [chromium] › editor/various/block-bindings.spec.js:75:4 › Block bindings › Template context › Paragraph › should lock the appropriate controls with a registered source
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1k:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
110 | name: 'Bold',
111 | } )
> 112 | ).toBeHidden();
| ^
113 |
114 | // Paragraph is not editable.
115 | await expect( paragraphBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:112:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L229
2) [chromium] › editor/various/block-bindings.spec.js:192:4 › Block bindings › Template context › Heading › should lock the appropriate controls with a registered source
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
227 | name: 'Bold',
228 | } )
> 229 | ).toBeHidden();
| ^
230 |
231 | // Heading is not editable.
232 | await expect( headingBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:229:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L229
2) [chromium] › editor/various/block-bindings.spec.js:192:4 › Block bindings › Template context › Heading › should lock the appropriate controls with a registered source
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
227 | name: 'Bold',
228 | } )
> 229 | ).toBeHidden();
| ^
230 |
231 | // Heading is not editable.
232 | await expect( headingBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:229:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L229
2) [chromium] › editor/various/block-bindings.spec.js:192:4 › Block bindings › Template context › Heading › should lock the appropriate controls with a registered source
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
- locator resolved to <button id=":r1m:" type="button" tabindex="-1" aria-labe…>…</button>
- unexpected value "visible"
227 | name: 'Bold',
228 | } )
> 229 | ).toBeHidden();
| ^
230 |
231 | // Heading is not editable.
232 | await expect( headingBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:229:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L353
3) [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
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
351 | .getByRole( 'toolbar', { name: 'Block tools' } )
352 | .getByRole( 'button', { name: 'Align text' } )
> 353 | ).toBeVisible();
| ^
354 |
355 | // Format controls don't exist.
356 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:353:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L353
3) [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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
351 | .getByRole( 'toolbar', { name: 'Block tools' } )
352 | .getByRole( 'button', { name: 'Align text' } )
> 353 | ).toBeVisible();
| ^
354 |
355 | // Format controls don't exist.
356 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:353:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L353
3) [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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Align text' })
351 | .getByRole( 'toolbar', { name: 'Block tools' } )
352 | .getByRole( 'button', { name: 'Align text' } )
> 353 | ).toBeVisible();
| ^
354 |
355 | // Format controls don't exist.
356 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:353:7
|
Run the tests:
test/e2e/specs/editor/various/block-bindings.spec.js#L479
4) [chromium] › editor/various/block-bindings.spec.js:440:4 › Block bindings › Template context › Button › should lock url controls when url is bound to a registered source
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Bold' })
477 | name: 'Bold',
478 | } )
> 479 | ).toBeVisible();
| ^
480 |
481 | // Button is editable.
482 | await expect( buttonBlock ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:479:7
|
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
20 failed
[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:192:4 › Block bindings › Template context › Heading › should lock the appropriate controls with a registered source
[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:440:4 › Block bindings › Template context › Button › should lock url controls when url is bound to a registered 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:646:4 › Block bindings › Template context › Image › should NOT show the upload form when url is bound to a registered source
[chromium] › editor/various/block-bindings.spec.js:702:4 › Block bindings › Template context › Image › should lock url controls when url is bound to a registered source
[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: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 › Post/page context › Heading › should add empty paragraph block when pressing enter
[chromium] › editor/various/block-bindings.spec.js:1432:4 › Block bindings › Post/page context › Button › should show the value of the custom field when text is bound
[chromium] › editor/various/block-bindings.spec.js:1570:4 › Block bindings › Post/page context › Button › should add empty button block when pressing enter
[chromium] › editor/various/block-bindings.spec.js:1691:4 › Block bindings › Post/page context › Image › should show value of the custom field in the alt textarea when alt is bound
[chromium] › editor/various/block-bindings.spec.js:1757:4 › Block bindings › Post/page context › Image › should show value of the custom field in the title input when title is bound
[chromium] › editor/various/block-bindings.spec.js:1833:4 › Block bindings › Post/page context › Image › Multiple bindings should show the value of the custom fields
1 skipped
159 passed (19.3m)
|
Loading