Skip to content

Use defer loading strategy for frontend view scripts #78958

Use defer loading strategy for frontend view scripts

Use defer loading strategy for frontend view scripts #78958

Triggered via pull request July 20, 2023 18:06
Status Failure
Total duration 38m 29s
Artifacts 2
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

end2end-test.yml

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

Annotations

9 errors and 4 notices
[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
1) [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: /4e22eb10-5e60-482a-9ff7-959a1594e634/ Received string: "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" 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/ae736fba-e186-435c-bb8b-46b1898b8e8d" - 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/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/ae736fba-e186-435c-bb8b-46b1898b8e8d" 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:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: test/e2e/specs/editor/blocks/image.spec.js#L789
1) [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveAttribute(expected) Expected pattern: /e7ed2558-5cd4-4474-97c9-07fd6553c4fa/ Received string: "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" 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/aa5c4a65-9ac1-4451-9633-4608975fb810" - 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/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/aa5c4a65-9ac1-4451-9633-4608975fb810" 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:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: test/e2e/specs/editor/blocks/image.spec.js#L789
1) [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveAttribute(expected) Expected pattern: /f3b7c815-d1be-4bef-845c-bdd6c87867e4/ Received string: "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" 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/55bac4fc-71e1-4c39-b37d-7d9522d100de" - 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/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/55bac4fc-71e1-4c39-b37d-7d9522d100de" 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:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation: test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation Error: expect(received).toHaveAttribute(expected) Expected pattern: /0158512b-d2ff-4f94-8362-d365fe57077c/ Received string: "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" 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/384e632c-60b0-4655-b9df-854de6516fdc" - 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/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/384e632c-60b0-4655-b9df-854de6516fdc" 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:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation: test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveAttribute(expected) Expected pattern: /34def8e6-5c74-41ce-b733-5153bfe4d431/ Received string: "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" 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/e9cefd68-e011-4200-90c4-ace6360c326f" - 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/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/e9cefd68-e011-4200-90c4-ace6360c326f" 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:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation: test/e2e/specs/editor/blocks/image.spec.js#L789
2) [chromium] › editor/blocks/image.spec.js:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveAttribute(expected) Expected pattern: /a9de45fa-aa62-4af6-b661-b5c85c713172/ Received string: "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" 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/bc1c7666-9ffa-4914-a85f-8241a27725d6" - 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/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/bc1c7666-9ffa-4914-a85f-8241a27725d6" 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
3) [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: /03ad93bf-4276-4975-a860-e357e6a7e4f9/ Received string: "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" 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/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - 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/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/426ab0ca-3073-4b83-a2d8-b40cec1f1b85" 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:1040:3 › Image - interactivity › tests using uploaded image › markup should not appear if Lightbox is disabled: test/e2e/specs/editor/blocks/image.spec.js#L789
4) [chromium] › editor/blocks/image.spec.js:1040:3 › Image - interactivity › tests using uploaded image › markup should not appear if Lightbox is disabled Error: expect(received).toHaveAttribute(expected) Expected pattern: /4a7521a7-bb90-43e4-876d-ab50e3186049/ Received string: "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" 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/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - 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/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/5d769bbf-23a6-4fab-8bee-f7413d8711b4" 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
2 skipped 173 passed (11.6m)
🎭 Playwright Run Summary
157 passed (14.6m)
🎭 Playwright Run Summary
184 passed (15.8m)
🎭 Playwright Run Summary
2 failed [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:936:4 › Image - interactivity › tests using uploaded image › should open and close the image in a lightbox when using a mouse and dynamically load src › fade animation 2 flaky [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/image.spec.js:1040:3 › Image - interactivity › tests using uploaded image › markup should not appear if Lightbox is disabled 183 passed (21.8m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
26 MB
flaky-tests-report Expired
21.6 KB