Skip to content

Guidelines: Add e2e tests based on the Settings page testing instructions #150983

Guidelines: Add e2e tests based on the Settings page testing instructions

Guidelines: Add e2e tests based on the Settings page testing instructions #150983

Triggered via pull request April 9, 2026 13:15
Status Success
Total duration 1h 11m 23s
Artifacts 3

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Merge Artifacts
50s
Merge Artifacts
Report to GitHub
2m 8s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 8 notices
[chromium] › specs/site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page: test/e2e/specs/site-editor/homepage-settings.spec.js#L93
1) [chromium] › specs/site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page Error: locator.click: Error: strict mode violation: getByRole('row').filter({ has: getByRole('gridcell').getByLabel('Sample page') }) resolved to 2 elements: 1) <div class="" id=":ru:" role="row">…</div> aka getByRole('row', { name: 'Sample Page Edit Actions Author Author avatar admin Status Published', exact: true }) 2) <div class="" id=":r16:" role="row">…</div> aka getByRole('row', { name: 'Sample page Edit Actions Author Author avatar admin Status Published', exact: true }) Call log: - waiting for getByRole('row').filter({ has: getByRole('gridcell').getByLabel('Sample page') }) 91 | .filter( { has: samplePageTwo } ); 92 | // eslint-disable-next-line playwright/no-force-option > 93 | await samplePageTwoRow.click( { force: true } ); | ^ 94 | await samplePageTwoRow 95 | .getByRole( 'button', { 96 | name: 'Actions', at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/homepage-settings.spec.js:93:26
[chromium] › specs/editor/blocks/navigation-colors.spec.js:274:2 › Navigation colors › As a user I expect my navigation to use the colors I selected for it: packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L119
3) [chromium] › specs/editor/blocks/navigation-colors.spec.js:274:2 › Navigation colors › As a user I expect my navigation to use the colors I selected for it Error: apiRequestContext.fetch: socket hang up Call log: - → GET http://localhost:8889/wp-json/wp/v2/navigation/ - user-agent: Playwright/1.58.2 (x64; ubuntu 24.04) node/20.20 CI/1 - accept: */* - accept-encoding: gzip,deflate,br - X-WP-Nonce: 665629daab - content-type: application/json - content-length: 90 - cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1775913582%7CQ1vOZqwOW3BsVNYRjw7Re0A8Frj0JOFxx5zOevEWeY4%7C2b767259a7654e6a265ccd18cb31236342aa558c8bba41bceec0197424f01aa7; wp-settings-time-1=1775741558 at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119 117 | 118 | try { > 119 | const response = await this.request.fetch( url, { | ^ 120 | ...fetchOptions, 121 | failOnStatusCode: false, 122 | headers: { at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119:39) at RequestUtils.deleteAllMenus (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/menus.ts:81:30) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:40:17
[chromium] › specs/editor/blocks/classic.spec.js:44:2 › Classic › should insert media: packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts#L20
2) [chromium] › specs/editor/blocks/classic.spec.js:44:2 › Classic › should insert media, convert to blocks, and undo in one step TimeoutError: locator.click: Timeout 10000ms exceeded. Call log: - waiting for locator('role=toolbar[name="Block tools"i]').locator('role=button[name="Convert to blocks"]') at ../../../packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:20 18 | const button = blockToolbar.locator( `role=button[name="${ label }"]` ); 19 | > 20 | await button.click(); | ^ 21 | } 22 | at Editor.clickBlockToolbarButton (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/click-block-toolbar-button.ts:20:15) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/classic.spec.js:105:3
[chromium] › specs/admin/font-library.spec.js:32:3 › Font Library › When a user manages custom fonts via the UI › should allow user to add and remove multiple local font files: test/e2e/specs/admin/font-library.spec.js#L61
1) [chromium] › specs/admin/font-library.spec.js:32:3 › Font Library › When a user manages custom fonts via the UI › should allow user to add and remove multiple local font files Error: expect(locator).toBeVisible() failed Locator: getByLabel('Exo 2 Semi-bold Italic') Expected: visible Timeout: 5000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 5000ms - waiting for getByLabel('Exo 2 Semi-bold Italic') 59 | await expect( 60 | page.getByLabel( 'Exo 2 Semi-bold Italic' ) > 61 | ).toBeVisible(); | ^ 62 | 63 | // Check CSS preset was created by creating a post and applying the font. 64 | await admin.createNewPost(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/admin/font-library.spec.js:61:6
[chromium] › specs/editor/various/post-content-focus-mode.spec.js:129:3 › Post Content focus mode › post content inside a template part › post title and content are editable and blocks can be inserted: packages/e2e-test-utils-playwright/src/editor/select-blocks.ts#L26
1) [chromium] › specs/editor/various/post-content-focus-mode.spec.js:129:3 › Post Content focus mode › post content inside a template part › post title and content are editable and blocks can be inserted › Paragraph and Group blocks are available in the inserter TimeoutError: locator.getAttribute: Timeout 10000ms exceeded. Call log: - waiting for locator('[name="editor-canvas"]').contentFrame().getByText('Initial content') at ../../../packages/e2e-test-utils-playwright/src/editor/select-blocks.ts:26 24 | : endSelectorOrLocator; 25 | > 26 | const startClientId = await startBlock.getAttribute( 'data-block' ); | ^ 27 | const endClientId = await endBlock?.getAttribute( 'data-block' ); 28 | 29 | if ( endClientId ) { at Editor.selectBlocks (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/select-blocks.ts:26:41) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-content-focus-mode.spec.js:163:18 at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/post-content-focus-mode.spec.js:159:15
🎭 Playwright Run Summary
1 flaky [chromium] › specs/site-editor/homepage-settings.spec.js:62:2 › Homepage Settings via Editor › should show correct homepage actions based on current homepage or posts page 3 skipped 244 passed (12.1m)
🎭 Playwright Run Summary
3 skipped 242 passed (12.3m)
🎭 Playwright Run Summary
1 skipped 244 passed (13.5m)
🎭 Playwright Run Summary
3 flaky [chromium] › specs/admin/font-library.spec.js:32:3 › Font Library › When a user manages custom fonts via the UI › should allow user to add and remove multiple local font files [chromium] › specs/editor/blocks/classic.spec.js:44:2 › Classic › should insert media, convert to blocks, and undo in one step [chromium] › specs/editor/blocks/navigation-colors.spec.js:274:2 › Navigation colors › As a user I expect my navigation to use the colors I selected for it 246 passed (13.6m)
🎭 Playwright Run Summary
1 flaky [chromium] › specs/editor/various/post-content-focus-mode.spec.js:129:3 › Post Content focus mode › post content inside a template part › post title and content are editable and blocks can be inserted 5 skipped 230 passed (12.9m)
🎭 Playwright Run Summary
6 skipped 242 passed (14.4m)
🎭 Playwright Run Summary
1 skipped 260 passed (24.3m)
🎭 Playwright Run Summary
5 skipped 238 passed (16.5m)

Artifacts

Produced during runtime
Name Size Digest
blob-reports-merged
13.8 MB
sha256:e89a9a48ad559acec78bb95166bbc427ae42bdbbb52fd200c2c53a8a42fd57ec
flaky-tests-report
5.72 KB
sha256:80cc953ee673123109ea6cd58958c9194d18c1462fe3552711aa5af8964b0186
html-report--attempt-1
13.3 MB
sha256:40b75d732c74642ed1c31bac78d34781a93179f4120f56d929da2a8109f351a3