Query and Search blocks: support for Instant Search via render_block_context
filter
#119518
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L381
1) [chromium] › interactivity/instant-search.spec.ts:369:7 › Instant Search › Multiple Queries › should handle searches independently
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
379 | // Search in default query
380 | await defaultQuerySearch.fill( 'Unique' );
> 381 | await page.waitForResponse( ( response ) =>
| ^
382 | response.url().includes( 'instant-search=Unique' )
383 | );
384 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:381:15
|
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L381
1) [chromium] › interactivity/instant-search.spec.ts:369:7 › Instant Search › Multiple Queries › should handle searches independently
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
379 | // Search in default query
380 | await defaultQuerySearch.fill( 'Unique' );
> 381 | await page.waitForResponse( ( response ) =>
| ^
382 | response.url().includes( 'instant-search=Unique' )
383 | );
384 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:381:15
|
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L381
1) [chromium] › interactivity/instant-search.spec.ts:369:7 › Instant Search › Multiple Queries › should handle searches independently
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
379 | // Search in default query
380 | await defaultQuerySearch.fill( 'Unique' );
> 381 | await page.waitForResponse( ( response ) =>
| ^
382 | response.url().includes( 'instant-search=Unique' )
383 | );
384 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:381:15
|
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L454
2) [chromium] › interactivity/instant-search.spec.ts:429:7 › Instant Search › Multiple Queries › should handle pagination independently
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /paged=1/
Received string: "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
452 | // Search in default query and verify only its pagination resets
453 | await defaultQuerySearch.fill( 'Test' );
> 454 | await expect( page ).toHaveURL( /paged=1/ );
| ^
455 | await expect( page ).toHaveURL(
456 | new RegExp( `query-${ customQueryId }-page=3` )
457 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:454:25
|
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L454
2) [chromium] › interactivity/instant-search.spec.ts:429:7 › Instant Search › Multiple Queries › should handle pagination independently
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /paged=1/
Received string: "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
452 | // Search in default query and verify only its pagination resets
453 | await defaultQuerySearch.fill( 'Test' );
> 454 | await expect( page ).toHaveURL( /paged=1/ );
| ^
455 | await expect( page ).toHaveURL(
456 | new RegExp( `query-${ customQueryId }-page=3` )
457 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:454:25
|
Run the tests:
test/e2e/specs/interactivity/instant-search.spec.ts#L454
2) [chromium] › interactivity/instant-search.spec.ts:429:7 › Instant Search › Multiple Queries › should handle pagination independently
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /paged=1/
Received string: "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?paged=2&query-1234-page=3&instant-search-1=Test&query-1-page=1"
452 | // Search in default query and verify only its pagination resets
453 | await defaultQuerySearch.fill( 'Test' );
> 454 | await expect( page ).toHaveURL( /paged=1/ );
| ^
455 | await expect( page ).toHaveURL(
456 | new RegExp( `query-${ customQueryId }-page=3` )
457 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/instant-search.spec.ts:454:25
|
Run the tests:
test/e2e/specs/site-editor/template-hierarchy.spec.js#L22
3) [chromium] › site-editor/template-hierarchy.spec.js:15:2 › Template hierarchy › shows correct template with page on front option
TimeoutError: page.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="page_on_front"]')
- locator resolved to <select id="page_on_front" name="page_on_front">…</select>
- attempting select option action
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #1
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #2
- waiting 20ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #3
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #4
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #5
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #6
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #7
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #8
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #9
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #10
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #11
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #12
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #13
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #14
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #15
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #16
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #17
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #18
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #19
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #20
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #21
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #22
- waiting 500ms
- waiting for element to be visible and enabled
|
Run the tests:
test/e2e/specs/site-editor/template-hierarchy.spec.js#L22
3) [chromium] › site-editor/template-hierarchy.spec.js:15:2 › Template hierarchy › shows correct template with page on front option
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="page_on_front"]')
- locator resolved to <select id="page_on_front" name="page_on_front">…</select>
- attempting select option action
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #1
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #2
- waiting 20ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #3
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #4
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #5
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #6
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #7
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #8
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #9
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #10
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #11
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #12
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #13
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #14
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #15
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #16
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #17
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #18
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #19
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #20
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #21
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select opti
|
Run the tests:
test/e2e/specs/site-editor/template-hierarchy.spec.js#L22
3) [chromium] › site-editor/template-hierarchy.spec.js:15:2 › Template hierarchy › shows correct template with page on front option
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="page_on_front"]')
- locator resolved to <select id="page_on_front" name="page_on_front">…</select>
- attempting select option action
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #1
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #2
- waiting 20ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #3
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #4
- waiting 100ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #5
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #6
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #7
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #8
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #9
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #10
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #11
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #12
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #13
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #14
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #15
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #16
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #17
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #18
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #19
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #20
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select option action, attempt #21
- waiting 500ms
- waiting for element to be visible and enabled
- did not find some options
- retrying select opti
|
Run the tests
Process completed with exit code 1.
|
Run the tests
3 failed
[chromium] › interactivity/instant-search.spec.ts:369:7 › Instant Search › Multiple Queries › should handle searches independently
[chromium] › interactivity/instant-search.spec.ts:429:7 › Instant Search › Multiple Queries › should handle pagination independently
[chromium] › site-editor/template-hierarchy.spec.js:15:2 › Template hierarchy › shows correct template with page on front option
2 skipped
197 passed (7.7m)
|
Loading