Skip to content

Prevent scripts from loading if behaviors are not used #77645

Prevent scripts from loading if behaviors are not used

Prevent scripts from loading if behaviors are not used #77645

Triggered via pull request July 5, 2023 13:52
Status Failure
Total duration 28m 40s
Artifacts 2

end2end-test.yml

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

Annotations

10 errors and 4 notices
[chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content: packages/e2e-test-utils-playwright/src/editor/publish-post.ts#L34
1) [chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content TimeoutError: locator.inputValue: Timeout 10000ms exceeded. =========================== logs =========================== waiting for getByRole('region', { name: 'Editor publish' }).getByRole('textbox', { name: 'address' }) ============================================================ at ../../../packages/e2e-test-utils-playwright/src/editor/publish-post.ts:34 32 | .getByRole( 'region', { name: 'Editor publish' } ) 33 | .getByRole( 'textbox', { name: 'address' } ) > 34 | .inputValue(); | ^ 35 | const url = new URL( urlString ); 36 | const postId = url.searchParams.get( 'p' ); 37 | at Editor.publishPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/publish-post.ts:34:4) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:587:18
[chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/image.spec.js:601:2 › Image › image inserted via link should appear in the frontend published post content: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
2) [chromium] › editor/blocks/image.spec.js:601:2 › Image › image inserted via link should appear in the frontend published post content Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
4) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
4) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) at Object.test_1.test.extend.requestUtils.scope (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/test.ts:139:4)
[chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
4) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── 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.deleteAllPosts (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:29:16) 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
77 failed [chromium] › editor/blocks/image.spec.js:565:2 › Image › image inserted via upload should appear in the frontend published post content [chromium] › editor/blocks/image.spec.js:601:2 › Image › image inserted via link should appear in the frontend published post content [chromium] › editor/blocks/image.spec.js:796:3 › Image - interactivity › tests using uploaded image › should toggle "lightbox" in saved attributes [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts [chromium] › editor/blocks/links.spec.js:85:2 › Links › can update the url of an existing link ─ [chromium] › editor/blocks/list.spec.js:11:2 › List (@Firefox) › can be created by using an asterisk at the start of a paragraph block [chromium] › editor/blocks/list.spec.js:35:2 › List (@Firefox) › can be created by typing an asterisk in front of text of a paragraph block [chromium] › editor/blocks/list.spec.js:54:2 › List (@Firefox) › can be created by using a number at the start of a paragraph block [chromium] › editor/blocks/list.spec.js:71:2 › List (@Firefox) › can undo asterisk transform ─── [chromium] › editor/blocks/list.spec.js:87:2 › List (@Firefox) › should undo asterisk transform with backspace (-firefox) [chromium] › editor/blocks/list.spec.js:102:2 › List (@Firefox) › should undo asterisk transform with backspace after selection changes (-firefox) [chromium] › editor/blocks/list.spec.js:120:2 › List (@Firefox) › should undo asterisk transform with backspace setting isTyping state (-firefox) [chromium] › editor/blocks/list.spec.js:136:2 › List (@Firefox) › should undo asterisk transform with backspace after selection changes without requestIdleCallback (-firefox) [chromium] › editor/blocks/list.spec.js:155:2 › List (@Firefox) › should undo asterisk transform with escape (-firefox) [chromium] › editor/blocks/list.spec.js:170:2 › List (@Firefox) › should not undo asterisk transform with backspace after typing [chromium] › editor/blocks/list.spec.js:182:2 › List (@Firefox) › should not undo asterisk transform with backspace after selection change [chromium] › editor/blocks/list.spec.js:201:2 › List (@Firefox) › can be created by typing "/list" [chromium] › editor/blocks/list.spec.js:220:2 › List (@Firefox) › can be created by converting a paragraph [chromium] › editor/blocks/list.spec.js:237:2 › List (@Firefox) › can be created by converting multiple paragraphs [chromium] › editor/blocks/list.spec.js:263:2 › List (@Firefox) › can be created by converting a paragraph with line breaks [chromium] › editor/blocks/list.spec.js:287:2 › List (@Firefox) › should not transform lines in block when transforming multiple blocks [chromium] › editor/blocks/list.spec.js:316:2 › List (@Firefox) › can be converted to paragraphs [chromium] › editor/blocks/list.spec.js:335:2 › List (@Firefox) › can be converted when nested to paragraphs [chromium] › editor/blocks/list.spec.js:359:2 › List (@Firefox) › can be converted to a quote ── [chromium] › editor/blocks/list.spec.js:382:2 › List (@Firefox) › should create paragraph on split at end and merge back with content [chromium] › editor/blocks/list.spec.js:421:2 › List (@Firefox) › should split into two with paragraph and merge lists [chromium] › editor/blocks/list.spec.js:495:2 › List (@Firefox) › should keep nested list items when merging with paragraph [chromium] › editor/blocks/list.spec.js:560:2 › List (@Firefox) › should split into two ordered lists with paragraph [chromium] › editor/blocks/list.spec.js:591:2 › List (@Firefox) › should split indented list item [chromium] › editor/blocks/list.spec.js:617:2 › List (@Firefox) › should be immeadiately saved on indentation [chromium] › editor/blocks/list.spec.js:639:2 › List (@Firefox) › should change the base list type [chromium] › editor/blocks/list.spec.js:652:2 › List (@Firefox) › should change the indented list type [chromium] › editor/b
🎭 Playwright Run Summary
2 skipped 164 passed (11.8m)
🎭 Playwright Run Summary
176 passed (13.0m)
🎭 Playwright Run Summary
149 passed (14.5m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
5.91 MB
flaky-tests-report Expired
2.41 KB