Skip to content

Site Editor: Fix template lookup preloading for non-draft pages (#69400) #125411

Site Editor: Fix template lookup preloading for non-draft pages (#69400)

Site Editor: Fix template lookup preloading for non-draft pages (#69400) #125411

Triggered via push March 4, 2025 17:03
Status Failure
Total duration 18m 8s
Artifacts 1

end2end-test.yml

on: push
Matrix: e2e-playwright
Merge Artifacts
4s
Merge Artifacts
Report to GitHub
0s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 8 notices
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
Playwright - 4
Process completed with exit code 1.
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') Expected string: "No results found." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') 9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-b2a7ff70-ef2b-477d-8b07-0026b5318008" data-block="b2a7ff70-ef2b-477d-8b07-0026b5318008" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p> - unexpected value "" 55 | 'role=document[name="Block: Comment Template"i]' 56 | ) > 57 | ).toContainText( 'No results found.' ); | ^ 58 | } ); 59 | 60 | test( 'Pagination links are working as expected', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') Expected string: "No results found." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') 9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-29cab019-4ec4-4df1-8995-2ee01338603a" data-block="29cab019-4ec4-4df1-8995-2ee01338603a" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p> - unexpected value "" 55 | 'role=document[name="Block: Comment Template"i]' 56 | ) > 57 | ).toContainText( 'No results found.' ); | ^ 58 | } ); 59 | 60 | test( 'Pagination links are working as expected', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') Expected string: "No results found." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]') 9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-6081280c-7953-45f7-8f98-ab8b0a400de5" data-block="6081280c-7953-45f7-8f98-ab8b0a400de5" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p> - unexpected value "" 55 | 'role=document[name="Block: Comment Template"i]' 56 | ) > 57 | ).toContainText( 'No results found.' ); | ^ 58 | } ); 59 | 60 | test( 'Pagination links are working as expected', async ( { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
Playwright - 1
Process completed with exit code 1.
Merge Artifacts
No artifacts found matching pattern 'flaky-tests-report*'
🎭 Playwright Run Summary
2 skipped 203 passed (6.2m)
🎭 Playwright Run Summary
1 skipped 197 passed (7.8m)
🎭 Playwright Run Summary
1 skipped 201 passed (8.2m)
🎭 Playwright Run Summary
1 skipped 204 passed (8.5m)
🎭 Playwright Run Summary
3 failed [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview 1 skipped 194 passed (9.6m)
🎭 Playwright Run Summary
3 skipped 188 passed (10.1m)
🎭 Playwright Run Summary
1 failed [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments 206 passed (9.9m)
🎭 Playwright Run Summary
1 skipped 208 passed (10.7m)

Artifacts

Produced during runtime
Name Size
failures-artifacts
35.4 MB