Page - Quick Edit: add E2E tests #122600
Annotations
5 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/page-list.spec.js#L332
1) [chromium] › site-editor/page-list.spec.js:318:3 › Page List › Quick Edit Mode › should save multiple field changes and update Data Views UI
TypeError: statusVisibility.edit is not a function
330 |
331 | const { featuredImage, statusVisibility } = fields;
> 332 | await statusVisibility.edit( page );
| ^
333 | await featuredImage.performEdit( page );
334 | // Ensure that no dropdown is open
335 | await page.getByRole( 'button', { name: 'Close' } ).click();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/page-list.spec.js:332:27
|
Run the tests:
test/e2e/specs/site-editor/page-list.spec.js#L332
1) [chromium] › site-editor/page-list.spec.js:318:3 › Page List › Quick Edit Mode › should save multiple field changes and update Data Views UI
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: statusVisibility.edit is not a function
330 |
331 | const { featuredImage, statusVisibility } = fields;
> 332 | await statusVisibility.edit( page );
| ^
333 | await featuredImage.performEdit( page );
334 | // Ensure that no dropdown is open
335 | await page.getByRole( 'button', { name: 'Close' } ).click();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/page-list.spec.js:332:27
|
Run the tests:
test/e2e/specs/site-editor/page-list.spec.js#L332
1) [chromium] › site-editor/page-list.spec.js:318:3 › Page List › Quick Edit Mode › should save multiple field changes and update Data Views UI
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: statusVisibility.edit is not a function
330 |
331 | const { featuredImage, statusVisibility } = fields;
> 332 | await statusVisibility.edit( page );
| ^
333 | await featuredImage.performEdit( page );
334 | // Ensure that no dropdown is open
335 | await page.getByRole( 'button', { name: 'Close' } ).click();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/page-list.spec.js:332:27
|
Run the tests:
test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js#L113
2) [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-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-148-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-148-label" aria-describedby="view-list-0-148-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
|
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
1 failed
[chromium] › site-editor/page-list.spec.js:318:3 › Page List › Quick Edit Mode › should save multiple field changes and update Data Views UI
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
171 passed (9.1m)
|
Loading