Fix warnings within useSelect of the bulk editing header #122106
Annotations
7 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L66
1) [chromium] › editor/various/template-resolution.spec.js:47:3 › Template resolution › `page_for_posts` setting › Post editor proper template resolution
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
64 | await expect(
65 | page.getByRole( 'button', { name: 'Template options' } )
> 66 | ).toHaveText( 'Index' );
| ^
67 | } );
68 | test( 'Site editor proper template resolution', async ( {
69 | page,
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:66:6
|
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L66
1) [chromium] › editor/various/template-resolution.spec.js:47:3 › Template resolution › `page_for_posts` setting › Post editor proper template resolution
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
64 | await expect(
65 | page.getByRole( 'button', { name: 'Template options' } )
> 66 | ).toHaveText( 'Index' );
| ^
67 | } );
68 | test( 'Site editor proper template resolution', async ( {
69 | page,
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:66:6
|
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L66
1) [chromium] › editor/various/template-resolution.spec.js:47:3 › Template resolution › `page_for_posts` setting › Post editor proper template resolution
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
64 | await expect(
65 | page.getByRole( 'button', { name: 'Template options' } )
> 66 | ).toHaveText( 'Index' );
| ^
67 | } );
68 | test( 'Site editor proper template resolution', async ( {
69 | page,
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:66:6
|
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L87
2) [chromium] › editor/various/template-resolution.spec.js:68:3 › Template resolution › `page_for_posts` setting › Site editor proper template resolution
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
85 | await expect(
86 | page.getByRole( 'button', { name: 'Template options' } )
> 87 | ).toHaveText( 'Index' );
| ^
88 | } );
89 | } );
90 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:87:6
|
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L87
2) [chromium] › editor/various/template-resolution.spec.js:68:3 › Template resolution › `page_for_posts` setting › Site editor proper template resolution
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
85 | await expect(
86 | page.getByRole( 'button', { name: 'Template options' } )
> 87 | ).toHaveText( 'Index' );
| ^
88 | } );
89 | } );
90 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:87:6
|
Run the tests:
test/e2e/specs/editor/various/template-resolution.spec.js#L87
2) [chromium] › editor/various/template-resolution.spec.js:68:3 › Template resolution › `page_for_posts` setting › Site editor proper template resolution
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('button', { name: 'Template options' })
Expected string: "Index"
Received string: "Single Entries"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('button', { name: 'Template options' })
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
- locator resolved to <button type="button" aria-haspopup="true" aria-expanded="false" aria-label="Template options" class="components-button components-dropdown-menu__toggle is-compact is-tertiary">Single Entries</button>
- unexpected value "Single Entries"
85 | await expect(
86 | page.getByRole( 'button', { name: 'Template options' } )
> 87 | ).toHaveText( 'Index' );
| ^
88 | } );
89 | } );
90 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/template-resolution.spec.js:87:6
|
Run the tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
2 failed
[chromium] › editor/various/template-resolution.spec.js:47:3 › Template resolution › `page_for_posts` setting › Post editor proper template resolution
[chromium] › editor/various/template-resolution.spec.js:68:3 › Template resolution › `page_for_posts` setting › Site editor proper template resolution
1 skipped
193 passed (10.5m)
|
Loading