Fix: Use span on template list titles. (#56955) #90582
Annotations
8 errors and 1 notice
Run the tests:
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
|
Run the tests:
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
|
Run the tests:
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
|
Run the tests:
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
|
Run the tests:
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
|
Run the tests:
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
|
Run the tests:
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
|
Run the tests
Process completed with exit code 1.
|
Run the tests
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.4m)
|
The logs for this run have expired and are no longer available.
Loading