Skip to content

Iframe: avoid asset parsing & fix script localisation (#52405) #78082

Iframe: avoid asset parsing & fix script localisation (#52405)

Iframe: avoid asset parsing & fix script localisation (#52405) #78082

Triggered via push July 10, 2023 19:05
Status Failure
Total duration 34m 18s
Artifacts 2

end2end-test.yml

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

Annotations

5 errors and 4 notices
Puppeteer - 3: packages/e2e-tests/specs/editor/plugins/block-context.test.js#L32
Error: expect(jest.fn()).not.toHaveWarned(expected) Expected mock function not to be called but it was called with: [" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"],[" was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe. JSHandle@node"] at Object.expect (/home/runner/work/gutenberg/gutenberg/packages/jest-console/build/@wordpress/jest-console/src/index.js:32:4) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:293:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:226:10) at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:262:40) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:235:5) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:157:7) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:130:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:68:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
Puppeteer - 3
Process completed with exit code 1.
[chromium] › editor/various/convert-block-type.spec.js:15:2 › Code block › should convert to a preformatted block: packages/e2e-test-utils-playwright/src/admin/create-new-post.js#L42
1) [chromium] › editor/various/convert-block-type.spec.js:15:2 › Code block › should convert to a preformatted block TimeoutError: locator.waitFor: Timeout 10000ms exceeded. =========================== logs =========================== waiting for frameLocator('[name=editor-canvas]').locator('body > *').first() to be visible ============================================================ at ../../../packages/e2e-test-utils-playwright/src/admin/create-new-post.js:42 40 | .first(); 41 | > 42 | await canvasReadyLocator.waitFor(); | ^ 43 | 44 | await this.page.evaluate( ( welcomeGuide ) => { 45 | window.wp.data at Admin.createNewPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/admin/create-new-post.js:42:27) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/convert-block-type.spec.js:8:3
[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: /245b9bc6-2ef1-4d48-8184-a2d64d9e3d04/ Received string: "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" 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/88befd03-ac17-487f-8683-5e578ded1f9d" - 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/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/88befd03-ac17-487f-8683-5e578ded1f9d" 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: /a4ca19ad-1b3a-4eda-b101-b17c7f5b2481/ Received string: "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" 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/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - 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/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" - locator resolved to <img alt="This image has an empty alt attribute" src=…/> - unexpected value "blob:http://localhost:8889/fa1bff83-b7dd-4a80-9c8d-778c21c0b06d" 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 Run Summary
151 passed (11.6m)
🎭 Playwright Run Summary
2 skipped 164 passed (12.3m)
🎭 Playwright Run Summary
1 flaky [chromium] › editor/various/convert-block-type.spec.js:15:2 › Code block › should convert to a preformatted block 178 passed (16.4m)
🎭 Playwright Run Summary
1 flaky [chromium] › editor/blocks/image.spec.js:797:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes 180 passed (19.1m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
8.23 MB
flaky-tests-report Expired
24.1 KB