Global styles: display tooltips for pagination buttons on styles revision #106285
Annotations
1 error and 1 notice
test/e2e/specs/site-editor/command-center.spec.js#L46
1) [chromium] › site-editor/command-center.spec.js:38:2 › Site editor command palette › Open the command palette and navigate to a template
Error: expect.toHaveText: Error: strict mode violation: getByRole('heading', { level: 1 }) resolved to 2 elements:
1) <h1 data-wp-c16t="true" data-wp-component="Heading" …>Templates</h1> aka getByRole('heading', { name: 'Templates' })
2) <h1 data-wp-c16t="true" data-wp-component="Text" ari…>Index</h1> aka getByRole('button', { name: 'Editing template: Index Ctrl+K' })
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('heading', { level: 1 })
44 | await page.keyboard.type( 'index' );
45 | await page.getByRole( 'option', { name: 'index' } ).click();
> 46 | await expect( page.getByRole( 'heading', { level: 1 } ) ).toHaveText(
| ^
47 | 'Index'
48 | );
49 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/command-center.spec.js:46:61
|
|
This job succeeded
Loading