Use defer loading strategy for frontend view scripts #78212
end2end-test.yml
on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
3m 30s
Annotations
3 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] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.getMaxBatchSize (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:139:19)
at RequestUtils.batchRest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:166:23)
at RequestUtils.deleteAllBlocks (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/blocks.js:22:2)
at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
|
🎭 Playwright Run Summary
179 passed (14.0m)
|
🎭 Playwright Run Summary
151 passed (13.5m)
|
🎭 Playwright Run Summary
181 passed (16.1m)
|
🎭 Playwright Run Summary
1 flaky
[chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ─────────
2 skipped
163 passed (16.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
Expired
|
622 KB |
|
flaky-tests-report
Expired
|
3.16 KB |
|