Skip to content

Nav block: link text color inheritance fixes and tests #77962

Nav block: link text color inheritance fixes and tests

Nav block: link text color inheritance fixes and tests #77962

Triggered via pull request July 7, 2023 21:06
Status Failure
Total duration 34m 0s
Artifacts 2

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
3m 30s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 notices
[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: 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
[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: 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
[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: 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
[chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: 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
Playwright - 1
Process completed with exit code 1.
🎭 Playwright Run Summary
193 passed (13.3m)
🎭 Playwright Run Summary
2 skipped 164 passed (14.6m)
🎭 Playwright Run Summary
151 passed (15.6m)
🎭 Playwright Run Summary
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)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
13.4 MB
flaky-tests-report Expired
12.2 KB