Search and Query blocks: Add support for Default queries via pre_get_posts
filter
#121133
Annotations
9 errors, 9 warnings, and 8 notices
[chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded:
test/e2e/specs/site-editor/preload.spec.js#L45
1) [chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
"/wp/v2/settings",
- "/wp/v2/users/me",
]
43 |
44 | // To do: these should all be removed or preloaded.
> 45 | expect( requests ).toEqual( [
| ^
46 | // There are two separate settings OPTIONS requests. We should fix
47 | // so the one for canUser and getEntityRecord are reused.
48 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:45:22
|
[chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded:
test/e2e/specs/site-editor/preload.spec.js#L45
1) [chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
"/wp/v2/settings",
- "/wp/v2/users/me",
]
43 |
44 | // To do: these should all be removed or preloaded.
> 45 | expect( requests ).toEqual( [
| ^
46 | // There are two separate settings OPTIONS requests. We should fix
47 | // so the one for canUser and getEntityRecord are reused.
48 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:45:22
|
[chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded:
test/e2e/specs/site-editor/preload.spec.js#L45
1) [chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 0
Array [
"/wp/v2/settings",
- "/wp/v2/users/me",
]
43 |
44 | // To do: these should all be removed or preloaded.
> 45 | expect( requests ).toEqual( [
| ^
46 | // There are two separate settings OPTIONS requests. We should fix
47 | // so the one for canUser and getEntityRecord are reused.
48 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:45:22
|
Playwright - 5
Process completed with exit code 1.
|
[chromium] › editor/blocks/navigation-colors.spec.js:229:2 › Navigation colors › The navigation background color should apply to all navigation links including submenu and overlay backgrounds:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L119
1) [chromium] › editor/blocks/navigation-colors.spec.js:229:2 › Navigation colors › The navigation background color should apply to all navigation links including submenu and overlay backgrounds
Error: apiRequestContext.fetch: socket hang up
Call log:
- → GET http://localhost:8889/index.php?rest_route=%2Fwp%2Fv2%2Fpages&per_page=100&status=publish%2Cfuture%2Cdraft%2Cpending%2Cprivate%2Ctrash
- user-agent: Playwright/1.48.1 (x64; ubuntu 22.04) node/20.18 CI/1
- accept: */*
- accept-encoding: gzip,deflate,br
- X-WP-Nonce: 43a9e03d31
- cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1733597924%7Cotu7SHHxHgLsZeqYbIEaGmPN2N0T8qZcC5GQMfloNOp%7Cc0ba4a3e2161a00967d8de699940e2a08dbbeddccaa6cede9d47381550db82c4; wp-settings-time-1=1733425663
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119
117 |
118 | try {
> 119 | const response = await this.request.fetch( url, {
| ^
120 | ...fetchOptions,
121 | failOnStatusCode: false,
122 | headers: {
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:119:39)
at RequestUtils.deleteAllPages (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/pages.ts:47:27)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:41:17
|
[chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes:
test/e2e/specs/interactivity/instant-search.spec.ts#L330
1) [chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('input[type="search"]')
Expected string: "Unique"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('input[type="search"]')
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
328 |
329 | // Verify the search input has the initial value
> 330 | await expect( page.locator( 'input[type="search"]' ) ).toHaveValue(
| ^
331 | 'Unique'
332 | );
333 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:330:59
|
[chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes:
test/e2e/specs/interactivity/instant-search.spec.ts#L330
1) [chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('input[type="search"]')
Expected string: "Unique"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('input[type="search"]')
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
328 |
329 | // Verify the search input has the initial value
> 330 | await expect( page.locator( 'input[type="search"]' ) ).toHaveValue(
| ^
331 | 'Unique'
332 | );
333 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:330:59
|
[chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes:
test/e2e/specs/interactivity/instant-search.spec.ts#L330
1) [chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('input[type="search"]')
Expected string: "Unique"
Received string: ""
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('input[type="search"]')
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
- locator resolved to <input value="" name="s" required="" type="search" placeholder="" id="wp-block-search__input-1" class="wp-block-search__input" data-wp-bind--value="context.search" data-wp-on-async--input="actions.updateSearch"/>
- unexpected value ""
328 |
329 | // Verify the search input has the initial value
> 330 | await expect( page.locator( 'input[type="search"]' ) ).toHaveValue(
| ^
331 | 'Unique'
332 | );
333 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:330:59
|
Playwright - 7
Process completed with exit code 1.
|
Playwright - 6
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 5
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 4
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 1
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 8
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Playwright - 7
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Merge Artifacts
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 Playwright Run Summary
2 skipped
195 passed (6.1m)
|
🎭 Playwright Run Summary
1 skipped
199 passed (9.7m)
|
🎭 Playwright Run Summary
1 failed
[chromium] › site-editor/preload.spec.js:15:2 › Preload › Should make no requests before the iframe is loaded
1 skipped
196 passed (9.8m)
|
🎭 Playwright Run Summary
1 skipped
196 passed (9.5m)
|
🎭 Playwright Run Summary
1 skipped
197 passed (9.8m)
|
🎭 Playwright Run Summary
1 flaky
[chromium] › editor/blocks/navigation-colors.spec.js:229:2 › Navigation colors › The navigation background color should apply to all navigation links including submenu and overlay backgrounds
198 passed (10.0m)
|
🎭 Playwright Run Summary
3 skipped
188 passed (10.1m)
|
🎭 Playwright Run Summary
1 failed
[chromium] › interactivity/instant-search.spec.ts:296:7 › Instant Search › Custom Query › should handle pre-defined search from query attributes
1 skipped
202 passed (10.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
|
7.71 MB |
|
flaky-tests-report
|
1.51 KB |
|