Skip to content

Fix: Use span on template list titles. #90509

Fix: Use span on template list titles.

Fix: Use span on template list titles. #90509

Triggered via pull request December 11, 2023 18:54
Status Failure
Total duration 18m 43s
Artifacts 2

end2end-test.yml

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

Annotations

13 errors and 8 notices
[chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting: test/e2e/specs/site-editor/new-templates-list.spec.js#L41
1) [chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting ──────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() Expected string: "Tag Archives" Received string: "" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() 39 | } ) 40 | .first(); > 41 | await expect( firstTitle ).toHaveText( 'Tag Archives' ); | ^ 42 | // Ascending by title. 43 | await page 44 | .getByRole( 'menuitemradio', { name: 'Sort ascending' } ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:41:30
[chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting: test/e2e/specs/site-editor/new-templates-list.spec.js#L41
1) [chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() Expected string: "Tag Archives" Received string: "" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() 39 | } ) 40 | .first(); > 41 | await expect( firstTitle ).toHaveText( 'Tag Archives' ); | ^ 42 | // Ascending by title. 43 | await page 44 | .getByRole( 'menuitemradio', { name: 'Sort ascending' } ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:41:30
[chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting: test/e2e/specs/site-editor/new-templates-list.spec.js#L41
1) [chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting ──────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() Expected string: "Tag Archives" Received string: "" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByRole('region', { name: 'Template', includeHidden: true }).getByRole('heading', { includeHidden: true, level: 3 }).first() 39 | } ) 40 | .first(); > 41 | await expect( firstTitle ).toHaveText( 'Tag Archives' ); | ^ 42 | // Ascending by title. 43 | await page 44 | .getByRole( 'menuitemradio', { name: 'Sort ascending' } ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:41:30
[chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering: test/e2e/specs/site-editor/new-templates-list.spec.js#L61
2) [chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering ────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 59 | .getByRole( 'region', { name: 'Template' } ) 60 | .getByRole( 'heading', { level: 3 } ); > 61 | await expect( titles ).toHaveCount( 1 ); | ^ 62 | await expect( titles.first() ).toHaveText( 'Tag Archives' ); 63 | await page.getByRole( 'button', { name: 'Reset filters' } ).click(); 64 | await expect( titles ).toHaveCount( 6 ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:61:26
[chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering: test/e2e/specs/site-editor/new-templates-list.spec.js#L61
2) [chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering ────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 59 | .getByRole( 'region', { name: 'Template' } ) 60 | .getByRole( 'heading', { level: 3 } ); > 61 | await expect( titles ).toHaveCount( 1 ); | ^ 62 | await expect( titles.first() ).toHaveText( 'Tag Archives' ); 63 | await page.getByRole( 'button', { name: 'Reset filters' } ).click(); 64 | await expect( titles ).toHaveCount( 6 ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:61:26
[chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering: test/e2e/specs/site-editor/new-templates-list.spec.js#L61
2) [chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering ────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveCount(expected) Locator: getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) Expected: 1 Received: 0 Call log: - expect.toHaveCount with timeout 5000ms - waiting for getByRole('region', { name: 'Template' }).getByRole('heading', { level: 3 }) - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" - locator resolved to 0 elements - unexpected value "0" 59 | .getByRole( 'region', { name: 'Template' } ) 60 | .getByRole( 'heading', { level: 3 } ); > 61 | await expect( titles ).toHaveCount( 1 ); | ^ 62 | await expect( titles.first() ).toHaveText( 'Tag Archives' ); 63 | await page.getByRole( 'button', { name: 'Reset filters' } ).click(); 64 | await expect( titles ).toHaveCount( 6 ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/new-templates-list.spec.js:61:26
[chromium] › site-editor/font-library.spec.js:45:3 › Font Library › When a theme with bundled fonts is active › should display the "Manage Fonts" icon: test/e2e/specs/site-editor/font-library.spec.js#L42
3) [chromium] › site-editor/font-library.spec.js:45:3 › Font Library › When a theme with bundled fonts is active › should display the "Manage Fonts" icon TimeoutError: locator.click: Timeout 10000ms exceeded. =========================== logs =========================== waiting for frameLocator('[name="editor-canvas"]').locator('body') ============================================================ 40 | postType: 'wp_template', 41 | } ); > 42 | await editor.canvas.locator( 'body' ).click(); | ^ 43 | } ); 44 | 45 | test( 'should display the "Manage Fonts" icon', async ( { page } ) => { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/font-library.spec.js:42:42
Playwright - 6
Process completed with exit code 1.
Puppeteer: packages/e2e-tests/specs/widgets/editing-widgets.test.js#L813
TimeoutError: waiting for selector `div[data-slug="twentytwentyone"].active` failed: timeout 30000ms exceeded at new WaitTask (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForSelectorInPage (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:656:22) at Object.internalHandler.waitFor (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19) at DOMWorld.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:511:25) at Frame.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/FrameManager.ts:1290:47) at Page.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/Page.ts:3222:29) at waitForSelector (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils/build/@wordpress/e2e-test-utils/src/activate-theme.js:31:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/e2e-tests/config/setup-test-framework.js:251:2)
Puppeteer: packages/e2e-tests/specs/widgets/editing-widgets.test.js#L813
TimeoutError: waiting for selector `div[data-slug="twentytwentyone"].active` failed: timeout 30000ms exceeded at new WaitTask (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForSelectorInPage (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:656:22) at Object.internalHandler.waitFor (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19) at DOMWorld.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:511:25) at Frame.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/FrameManager.ts:1290:47) at Page.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/Page.ts:3222:29) at waitForSelector (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils/build/@wordpress/e2e-test-utils/src/activate-theme.js:31:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/e2e-tests/config/setup-test-framework.js:251:2)
Puppeteer: packages/e2e-tests/specs/widgets/editing-widgets.test.js#L813
TimeoutError: waiting for selector `div[data-slug="twentytwentyone"].active` failed: timeout 30000ms exceeded at new WaitTask (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForSelectorInPage (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:656:22) at Object.internalHandler.waitFor (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19) at DOMWorld.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:511:25) at Frame.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/FrameManager.ts:1290:47) at Page.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/Page.ts:3222:29) at waitForSelector (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils/build/@wordpress/e2e-test-utils/src/activate-theme.js:31:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/e2e-tests/config/setup-test-framework.js:251:2)
Puppeteer: packages/e2e-tests/specs/widgets/editing-widgets.test.js#L813
TimeoutError: waiting for selector `div[data-slug="twentytwentyone"].active` failed: timeout 30000ms exceeded at new WaitTask (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:813:28) at DOMWorld.waitForSelectorInPage (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:656:22) at Object.internalHandler.waitFor (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/QueryHandler.ts:78:19) at DOMWorld.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/DOMWorld.ts:511:25) at Frame.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/FrameManager.ts:1290:47) at Page.waitForSelector (/home/runner/work/gutenberg/gutenberg/node_modules/puppeteer-core/src/common/Page.ts:3222:29) at waitForSelector (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils/build/@wordpress/e2e-test-utils/src/activate-theme.js:31:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/e2e-tests/config/setup-test-framework.js:251:2)
Puppeteer
Process completed with exit code 1.
🎭 Playwright Run Summary
127 passed (5.7m)
🎭 Playwright Run Summary
1 skipped 113 passed (5.6m)
🎭 Playwright Run Summary
1 skipped 152 passed (6.5m)
🎭 Playwright Run Summary
146 passed (6.8m)
🎭 Playwright Run Summary
2 failed [chromium] › site-editor/new-templates-list.spec.js:20:2 › Templates › Sorting ───────────────── [chromium] › site-editor/new-templates-list.spec.js:48:2 › Templates › Filtering ─────────────── 1 flaky [chromium] › site-editor/font-library.spec.js:45:3 › Font Library › When a theme with bundled fonts is active › should display the "Manage Fonts" icon 1 skipped 111 passed (7.3m)
🎭 Playwright Run Summary
11 skipped 151 passed (7.3m)
🎭 Playwright Run Summary
134 passed (6.8m)
🎭 Playwright Run Summary
3 skipped 119 passed (7.1m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
6.71 MB
flaky-tests-report Expired
2.94 KB