Nav block: link text color inheritance fixes and tests #77962
Annotations
5 errors and 1 notice
test/e2e/specs/editor/blocks/navigation.spec.js#L1241
1) [chromium] › editor/blocks/navigation.spec.js:1168:3 › Navigation block › Navigation colors › As a user I expect my navigation links to inherit the link colors from the parent container
Error: expect(received).toHaveCSS(expected)
Expected string: "rgb(0, 208, 132)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
1239 |
1240 | // Expect the first link to inherit the link color from the parent group block
> 1241 | await expect( colorControl.customLink ).toHaveCSS(
| ^
1242 | 'color',
1243 | linkParentColor
1244 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:1241:44
|
test/e2e/specs/editor/blocks/navigation.spec.js#L1241
1) [chromium] › editor/blocks/navigation.spec.js:1168:3 › Navigation block › Navigation colors › As a user I expect my navigation links to inherit the link colors from the parent container
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveCSS(expected)
Expected string: "rgb(0, 208, 132)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
1239 |
1240 | // Expect the first link to inherit the link color from the parent group block
> 1241 | await expect( colorControl.customLink ).toHaveCSS(
| ^
1242 | 'color',
1243 | linkParentColor
1244 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:1241:44
|
test/e2e/specs/editor/blocks/navigation.spec.js#L1241
1) [chromium] › editor/blocks/navigation.spec.js:1168:3 › Navigation block › Navigation colors › As a user I expect my navigation links to inherit the link colors from the parent container
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveCSS(expected)
Expected string: "rgb(0, 208, 132)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a class="wp-block-navigation-item__content">…</a>
- unexpected value "rgb(0, 0, 0)"
1239 |
1240 | // Expect the first link to inherit the link color from the parent group block
> 1241 | await expect( colorControl.customLink ).toHaveCSS(
| ^
1242 | 'color',
1243 | linkParentColor
1244 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:1241:44
|
test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /1e53e313-5cd6-4cf3-b7aa-acfb54689abd/
Received string: "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('role=document[name="Block: Image"i]').locator('role=img')
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- waiting for locator('role=document[name="Block: Image"i]').locator('role=img')
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/978c540d-0412-4236-8a3b-b2745f97bae9"
787 | const image = imageBlock.locator( 'role=img' );
788 | await expect( image ).toBeVisible();
> 789 | await expect( image ).toHaveAttribute(
| ^
790 | 'src',
791 | new RegExp( filename )
792 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:789:26
|
|
1 failed
[chromium] › editor/blocks/navigation.spec.js:1168:3 › Navigation block › Navigation colors › As a user I expect my navigation links to inherit the link colors from the parent container
1 flaky
[chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes
168 passed (19.0m)
|
The logs for this run have expired and are no longer available.
Loading