[DataView] Initial list of unit tests for the DataView component #122586
Annotations
1 error, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js#L113
1) [chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:96:2 › Dataviews List Layout › Navigates the items list via UP/DOWN arrow keys
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: getByLabel('Sample Page')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for getByLabel('Sample Page')
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-177-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-177-label" aria-describedby="view-list-0-177-description"></button>
- unexpected value "not focused"
111 | // Use arrow up/down to move through the list.
112 | await page.keyboard.press( 'ArrowDown' );
> 113 | await expect( page.getByLabel( 'Sample Page' ) ).toBeFocused();
| ^
114 |
115 | await page.keyboard.press( 'ArrowUp' );
116 | await expect( page.getByLabel( 'Privacy Policy' ) ).toBeFocused();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:113:52
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
1 flaky
[chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:96:2 › Dataviews List Layout › Navigates the items list via UP/DOWN arrow keys
1 skipped
199 passed (10.2m)
|
Loading