Route to published post instead of homepage on navigation e2e tests #78953
end2end-test.yml
on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
4m 7s
Annotations
10 errors and 4 notices
[chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation:
test/e2e/specs/editor/blocks/image.spec.js#L789
1) [chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /d53e5472-de8c-4c6b-afca-197884bb470c/
Received string: "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
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/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- 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/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/d02a21c8-d0fc-4496-9cea-7cff98655c53"
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
|
[chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation:
test/e2e/specs/editor/blocks/image.spec.js#L789
1) [chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /bd5ab910-df75-440a-8f7b-79b56b5d34e9/
Received string: "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
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/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- 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/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/ae1087e8-2026-4205-b921-75dc9bfa6c9c"
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
|
[chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation:
test/e2e/specs/editor/blocks/image.spec.js#L789
1) [chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveAttribute(expected)
Expected pattern: /2bf50a37-ab62-46e5-941e-c8ff808bcdf0/
Received string: "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
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/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- 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/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
- locator resolved to <img alt="This image has an empty alt attribute" src=…/>
- unexpected value "blob:http://localhost:8889/5ce5a094-e9a7-4ecd-b01f-3f4b043987d6"
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
|
[chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu:
test/e2e/specs/editor/blocks/navigation.spec.js#L93
2) [chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu
Error: expect.toBeVisible: Error: strict mode violation: locator('role=navigation').locator('role=link[name="WordPress"i]') resolved to 2 elements:
1) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka locator('#modal-1-content').getByRole('link', { name: 'WordPress' })
2) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka getByRole('navigation', { name: 'Test Menu 1' }).getByRole('link', { name: 'WordPress' })
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for locator('role=navigation').locator('role=link[name="WordPress"i]')
============================================================
91 | `role=navigation >> role=link[name="WordPress"i]`
92 | )
> 93 | ).toBeVisible();
| ^
94 |
95 | expect( true ).toBe( false );
96 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:93:6
|
[chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu:
test/e2e/specs/editor/blocks/navigation.spec.js#L93
2) [chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: locator('role=navigation').locator('role=link[name="WordPress"i]') resolved to 2 elements:
1) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka locator('#modal-1-content').getByRole('link', { name: 'WordPress' })
2) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka getByRole('navigation', { name: 'Test Menu 1' }).getByRole('link', { name: 'WordPress' })
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for locator('role=navigation').locator('role=link[name="WordPress"i]')
============================================================
91 | `role=navigation >> role=link[name="WordPress"i]`
92 | )
> 93 | ).toBeVisible();
| ^
94 |
95 | expect( true ).toBe( false );
96 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:93:6
|
[chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu:
test/e2e/specs/editor/blocks/navigation.spec.js#L93
2) [chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: locator('role=navigation').locator('role=link[name="WordPress"i]') resolved to 2 elements:
1) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka locator('#modal-1-content').getByRole('link', { name: 'WordPress' })
2) <a href="http://www.wordpress.org/" class="wp-block…>…</a> aka getByRole('navigation', { name: 'Test Menu 1' }).getByRole('link', { name: 'WordPress' })
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for locator('role=navigation').locator('role=link[name="WordPress"i]')
============================================================
91 | `role=navigation >> role=link[name="WordPress"i]`
92 | )
> 93 | ).toBeVisible();
| ^
94 |
95 | expect( true ).toBe( false );
96 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:93:6
|
[chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus:
test/e2e/specs/editor/blocks/navigation.spec.js#L132
3) [chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
130 | ).toBeVisible();
131 |
> 132 | expect( true ).toBe( false );
| ^
133 | } );
134 |
135 | test( 'default to my most recently created menu', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:132:19
|
[chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus:
test/e2e/specs/editor/blocks/navigation.spec.js#L132
3) [chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
130 | ).toBeVisible();
131 |
> 132 | expect( true ).toBe( false );
| ^
133 | } );
134 |
135 | test( 'default to my most recently created menu', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:132:19
|
[chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus:
test/e2e/specs/editor/blocks/navigation.spec.js#L132
3) [chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
130 | ).toBeVisible();
131 |
> 132 | expect( true ).toBe( false );
| ^
133 | } );
134 |
135 | test( 'default to my most recently created menu', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:132:19
|
[chromium] › editor/blocks/navigation.spec.js:135:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my most recently created menu:
test/e2e/specs/editor/blocks/navigation.spec.js#L183
4) [chromium] › editor/blocks/navigation.spec.js:135:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my most recently created menu
Error: expect.toBeVisible: Error: strict mode violation: locator('role=navigation').locator('role=link[name="Menu 2 Link"i]') resolved to 2 elements:
1) <a class="wp-block-navigation-item__content" href="…>…</a> aka locator('#modal-1-content').getByRole('link', { name: 'Menu 2 Link' })
2) <a class="wp-block-navigation-item__content" href="…>…</a> aka getByRole('navigation', { name: 'Test Menu 2' }).getByRole('link', { name: 'Menu 2 Link' })
=========================== logs ===========================
expect.toBeVisible with timeout 5000ms
waiting for locator('role=navigation').locator('role=link[name="Menu 2 Link"i]')
============================================================
181 | `role=navigation >> role=link[name="Menu 2 Link"i]`
182 | )
> 183 | ).toBeVisible();
| ^
184 |
185 | expect( true ).toBe( false );
186 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation.spec.js:183:6
|
🎭 Playwright Run Summary
2 skipped
173 passed (11.5m)
|
🎭 Playwright Run Summary
184 passed (12.8m)
|
🎭 Playwright Run Summary
157 passed (14.1m)
|
🎭 Playwright Run Summary
5 failed
[chromium] › editor/blocks/image.spec.js:840:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › zoom animation
[chromium] › editor/blocks/navigation.spec.js:55:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my only existing menu
[chromium] › editor/blocks/navigation.spec.js:98:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to the only existing classic menu if there are no block menus
[chromium] › editor/blocks/navigation.spec.js:135:3 › Navigation block › As a user I want the navigation block to fallback to the best possible default › default to my most recently created menu
[chromium] › editor/blocks/navigation.spec.js:190:3 › Navigation block › As a user I want to create submenus using the navigation block › create a submenu
2 flaky
[chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes
[chromium] › editor/blocks/image.spec.js:1005:3 › Image - interactivity › tests using uploaded image › lightbox should be overriden when link is configured for image
180 passed (21.2m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
Expired
|
37.4 MB |
|
flaky-tests-report
Expired
|
21.7 KB |
|