Skip to content

Template editing: Refactor the post editor template-only mode #92555

Template editing: Refactor the post editor template-only mode

Template editing: Refactor the post editor template-only mode #92555

Triggered via pull request January 8, 2024 03:26
Status Failure
Total duration 15m 0s
Artifacts 1

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Report to GitHub
8s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 notices
[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page: test/e2e/specs/site-editor/pages.spec.js#L127
1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) Expected string: "This is the Content block, it will display all the blocks in any single post or page." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) 125 | name: 'Block: Content', 126 | } ) > 127 | ).toContainText( | ^ 128 | 'This is the Content block, it will display all the blocks in any single post or page.' 129 | ); 130 | await expect( at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:127:5
[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page: test/e2e/specs/site-editor/pages.spec.js#L127
1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) Expected string: "This is the Content block, it will display all the blocks in any single post or page." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) 125 | name: 'Block: Content', 126 | } ) > 127 | ).toContainText( | ^ 128 | 'This is the Content block, it will display all the blocks in any single post or page.' 129 | ); 130 | await expect( at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:127:5
[chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page: test/e2e/specs/site-editor/pages.spec.js#L127
1) [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) Expected string: "This is the Content block, it will display all the blocks in any single post or page." Received string: "" Call log: - expect.toContainText with timeout 5000ms - waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Content' }) 125 | name: 'Block: Content', 126 | } ) > 127 | ).toContainText( | ^ 128 | 'This is the Content block, it will display all the blocks in any single post or page.' 129 | ); 130 | await expect( at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:127:5
Playwright - 6
Process completed with exit code 1.
[chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode: test/e2e/specs/editor/various/post-editor-template-mode.spec.js#L151
1) [chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode, edit the template and check the result TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. =========================== logs =========================== waiting for locator('role=button[name="Dismiss this notice"]').locator('text=Editing template. Changes made here affect all posts and pages that use the template.') to be visible ============================================================ 149 | 150 | // Check that we switched properly to edit mode. > 151 | await this.page.waitForSelector( | ^ 152 | 'role=button[name="Dismiss this notice"] >> text=Editing template. Changes made here affect all posts and pages that use the template.' 153 | ); 154 | at PostEditorTemplateMode.switchToTemplateMode (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:151:19) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:51:3
[chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode: test/e2e/specs/editor/various/post-editor-template-mode.spec.js#L151
1) [chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode, edit the template and check the result Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. =========================== logs =========================== waiting for locator('role=button[name="Dismiss this notice"]').locator('text=Editing template. Changes made here affect all posts and pages that use the template.') to be visible ============================================================ 149 | 150 | // Check that we switched properly to edit mode. > 151 | await this.page.waitForSelector( | ^ 152 | 'role=button[name="Dismiss this notice"] >> text=Editing template. Changes made here affect all posts and pages that use the template.' 153 | ); 154 | at PostEditorTemplateMode.switchToTemplateMode (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:151:19) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:51:3
[chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode: test/e2e/specs/editor/various/post-editor-template-mode.spec.js#L151
1) [chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode, edit the template and check the result Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. =========================== logs =========================== waiting for locator('role=button[name="Dismiss this notice"]').locator('text=Editing template. Changes made here affect all posts and pages that use the template.') to be visible ============================================================ 149 | 150 | // Check that we switched properly to edit mode. > 151 | await this.page.waitForSelector( | ^ 152 | 'role=button[name="Dismiss this notice"] >> text=Editing template. Changes made here affect all posts and pages that use the template.' 153 | ); 154 | at PostEditorTemplateMode.switchToTemplateMode (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:151:19) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-editor-template-mode.spec.js:51:3
Playwright - 5
Process completed with exit code 1.
Playwright - 5
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
Report to GitHub
Unable to download artifact(s): Artifact not found for name: flaky-tests-report
🎭 Playwright Run Summary
1 skipped 125 passed (6.3m)
🎭 Playwright Run Summary
164 passed (7.2m)
🎭 Playwright Run Summary
124 passed (6.5m)
🎭 Playwright Run Summary
3 skipped 119 passed (7.3m)
🎭 Playwright Run Summary
163 passed (7.6m)
🎭 Playwright Run Summary
11 skipped 152 passed (7.9m)
🎭 Playwright Run Summary
1 failed [chromium] › site-editor/pages.spec.js:93:2 › Pages › create a new page, edit template and toggle page template preview 2 skipped 114 passed (8.1m)
🎭 Playwright Run Summary
1 failed [chromium] › editor/various/post-editor-template-mode.spec.js:40:2 › Post Editor Template mode › Allow to switch to template mode, edit the template and check the result 1 skipped 171 passed (8.3m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
7.81 MB