Fix applying bindings or pattern overrides to button blocks with empt… #106385
Annotations
2 errors 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
|
test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js#L76
2) [chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:62:2 › Dataviews List Layout › Navigates from items list to preview via TAB, and vice versa
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: getByLabel('Privacy Policy')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for getByLabel('Privacy Policy')
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
- locator resolved to <div role="button" tabindex="-1" id="view-list-0-174"…>…</div>
- unexpected value "not focused"
74 | await expect( page.getByRole( 'grid' ) ).toBeVisible();
75 | await page.keyboard.press( 'Tab' );
> 76 | await expect( page.getByLabel( 'Privacy Policy' ) ).toBeFocused();
| ^
77 |
78 | // Go to the preview.
79 | await page.keyboard.press( 'Tab' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:76:55
|
2 flaky
[chromium] › site-editor/command-center.spec.js:38:2 › Site editor command palette › Open the command palette and navigate to a template
[chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:62:2 › Dataviews List Layout › Navigates from items list to preview via TAB, and vice versa
184 passed (9.0m)
|
This job succeeded
Loading