Rename button block attributes from url and text to href and content #106968
Annotations
10 errors and 1 notice
test/e2e/specs/editor/various/block-bindings.spec.js#L1517
1) [chromium] › editor/various/block-bindings.spec.js:1477:4 › Block bindings › Post/page context › Button › should show the value of the custom field when text is bound
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-text-binding a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-text-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1515 | '#button-text-binding a'
1516 | );
> 1517 | await expect( buttonDom ).toHaveText(
| ^
1518 | 'Value of the text_custom_field'
1519 | );
1520 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1517:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1517
1) [chromium] › editor/various/block-bindings.spec.js:1477:4 › Block bindings › Post/page context › Button › should show the value of the custom field when text is bound
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-text-binding a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-text-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1515 | '#button-text-binding a'
1516 | );
> 1517 | await expect( buttonDom ).toHaveText(
| ^
1518 | 'Value of the text_custom_field'
1519 | );
1520 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1517:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1517
1) [chromium] › editor/various/block-bindings.spec.js:1477:4 › Block bindings › Post/page context › Button › should show the value of the custom field when text is bound
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-text-binding a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-text-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1515 | '#button-text-binding a'
1516 | );
> 1517 | await expect( buttonDom ).toHaveText(
| ^
1518 | 'Value of the text_custom_field'
1519 | );
1520 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1517:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1557
2) [chromium] › editor/various/block-bindings.spec.js:1526:4 › Block bindings › Post/page context › Button › should use the value of the custom field when url is bound
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('#button-url-binding a')
Expected string: "#url-custom-field"
Received string: "#default-url"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#button-url-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
1555 | );
1556 | await expect( buttonDom ).toHaveText( 'button default text' );
> 1557 | await expect( buttonDom ).toHaveAttribute(
| ^
1558 | 'href',
1559 | '#url-custom-field'
1560 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1557:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1557
2) [chromium] › editor/various/block-bindings.spec.js:1526:4 › Block bindings › Post/page context › Button › should use the value of the custom field when url is bound
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('#button-url-binding a')
Expected string: "#url-custom-field"
Received string: "#default-url"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#button-url-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
1555 | );
1556 | await expect( buttonDom ).toHaveText( 'button default text' );
> 1557 | await expect( buttonDom ).toHaveAttribute(
| ^
1558 | 'href',
1559 | '#url-custom-field'
1560 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1557:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1557
2) [chromium] › editor/various/block-bindings.spec.js:1526:4 › Block bindings › Post/page context › Button › should use the value of the custom field when url is bound
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: locator('#button-url-binding a')
Expected string: "#url-custom-field"
Received string: "#default-url"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('#button-url-binding a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "#default-url"
1555 | );
1556 | await expect( buttonDom ).toHaveText( 'button default text' );
> 1557 | await expect( buttonDom ).toHaveAttribute(
| ^
1558 | 'href',
1559 | '#url-custom-field'
1560 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1557:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1597
3) [chromium] › editor/various/block-bindings.spec.js:1563:4 › Block bindings › Post/page context › Button › should use the values of the custom fields when text and url are bound
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-multiple-bindings a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-multiple-bindings a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1595 | '#button-multiple-bindings a'
1596 | );
> 1597 | await expect( buttonDom ).toHaveText(
| ^
1598 | 'Value of the text_custom_field'
1599 | );
1600 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1597:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1597
3) [chromium] › editor/various/block-bindings.spec.js:1563:4 › Block bindings › Post/page context › Button › should use the values of the custom fields when text and url are bound
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-multiple-bindings a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-multiple-bindings a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1595 | '#button-multiple-bindings a'
1596 | );
> 1597 | await expect( buttonDom ).toHaveText(
| ^
1598 | 'Value of the text_custom_field'
1599 | );
1600 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1597:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1597
3) [chromium] › editor/various/block-bindings.spec.js:1563:4 › Block bindings › Post/page context › Button › should use the values of the custom fields when text and url are bound
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('#button-multiple-bindings a')
Expected string: "Value of the text_custom_field"
Received string: "button default text"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('#button-multiple-bindings a')
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
- locator resolved to <a href="#default-url" class="wp-block-button__link…>button default text</a>
- unexpected value "button default text"
1595 | '#button-multiple-bindings a'
1596 | );
> 1597 | await expect( buttonDom ).toHaveText(
| ^
1598 | 'Value of the text_custom_field'
1599 | );
1600 | await expect( buttonDom ).toHaveAttribute(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1597:31
|
test/e2e/specs/editor/various/block-bindings.spec.js#L1648
4) [chromium] › editor/various/block-bindings.spec.js:1606:4 › Block bindings › Post/page context › Button › should add empty button block when pressing enter
Error: toHaveText can be only used with Locator object
1646 | );
1647 | // Second block should be an empty paragraph block.
> 1648 | await expect( newEmptyButton ).toHaveText( '' );
| ^
1649 | await expect( newEmptyButton ).toBeEditable();
1650 | } );
1651 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-bindings.spec.js:1648:36
|
5 failed
[chromium] › editor/various/block-bindings.spec.js:1477: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:1526:4 › Block bindings › Post/page context › Button › should use the value of the custom field when url is bound
[chromium] › editor/various/block-bindings.spec.js:1563:4 › Block bindings › Post/page context › Button › should use the values of the custom fields when text and url are bound
[chromium] › editor/various/block-bindings.spec.js:1606:4 › Block bindings › Post/page context › Button › should add empty button block when pressing enter
[chromium] › editor/various/block-bindings.spec.js:2013:4 › Block bindings › Post/page context › Edit custom fields › should be possible to edit the value of the url custom field from the button
1 skipped
192 passed (11.2m)
|
This job failed
Loading