Interactivity API: Try this in callbacks for async actions #102534
Annotations
11 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L92
1) [chromium] › interactivity/router-navigate.spec.ts:59:6 › Router navigate › should update the HTML only for the latest navigation
TypeError: resolveLink2 is not a function
90 | await expect( title ).toHaveText( 'Main' );
91 |
> 92 | await Promise.resolve().then( () => resolveLink2() );
| ^
93 |
94 | await expect( navigations ).toHaveText( '1' );
95 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:3
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L92
1) [chromium] › interactivity/router-navigate.spec.ts:59:6 › Router navigate › should update the HTML only for the latest navigation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: resolveLink2 is not a function
90 | await expect( title ).toHaveText( 'Main' );
91 |
> 92 | await Promise.resolve().then( () => resolveLink2() );
| ^
93 |
94 | await expect( navigations ).toHaveText( '1' );
95 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:3
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L92
1) [chromium] › interactivity/router-navigate.spec.ts:59:6 › Router navigate › should update the HTML only for the latest navigation
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: resolveLink2 is not a function
90 | await expect( title ).toHaveText( 'Main' );
91 |
> 92 | await Promise.resolve().then( () => resolveLink2() );
| ^
93 |
94 | await expect( navigations ).toHaveText( '1' );
95 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:39
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:92:3
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L136
2) [chromium] › interactivity/router-navigate.spec.ts:105:6 › Router navigate › should update the URL from the last navigation if only varies in the URL fragment
TypeError: resolvers.pop(...) is not a function
134 | await expect( title ).toHaveText( 'Main' );
135 |
> 136 | resolvers.pop()!();
| ^
137 |
138 | await expect( navigations ).toHaveText( '1' );
139 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:136:18
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L136
2) [chromium] › interactivity/router-navigate.spec.ts:105:6 › Router navigate › should update the URL from the last navigation if only varies in the URL fragment
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: resolvers.pop(...) is not a function
134 | await expect( title ).toHaveText( 'Main' );
135 |
> 136 | resolvers.pop()!();
| ^
137 |
138 | await expect( navigations ).toHaveText( '1' );
139 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:136:18
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L136
2) [chromium] › interactivity/router-navigate.spec.ts:105:6 › Router navigate › should update the URL from the last navigation if only varies in the URL fragment
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: resolvers.pop(...) is not a function
134 | await expect( title ).toHaveText( 'Main' );
135 |
> 136 | resolvers.pop()!();
| ^
137 |
138 | await expect( navigations ).toHaveText( '1' );
139 | await expect( status ).toHaveText( 'busy' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:136:18
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L181
3) [chromium] › interactivity/router-navigate.spec.ts:151:6 › Router navigate › should reload the next page when the timeout ends
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://localhost:8889/?p=31&disable_server_directive_processing=true"
Received string: "http://localhost:8889/?p=33&disable_server_directive_processing=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=33&disable_server_directive_processing=true"
179 | await page.getByTestId( 'link 1' ).click();
180 |
> 181 | await expect( page ).toHaveURL( link1 );
| ^
182 | await expect( title ).toHaveText( 'Link 1' );
183 |
184 | // If timeout is 10000, that means the page has been reloaded.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:181:24
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L181
3) [chromium] › interactivity/router-navigate.spec.ts:151:6 › Router navigate › should reload the next page when the timeout ends
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://localhost:8889/?p=35&disable_server_directive_processing=true"
Received string: "http://localhost:8889/?p=37&disable_server_directive_processing=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=37&disable_server_directive_processing=true"
179 | await page.getByTestId( 'link 1' ).click();
180 |
> 181 | await expect( page ).toHaveURL( link1 );
| ^
182 | await expect( title ).toHaveText( 'Link 1' );
183 |
184 | // If timeout is 10000, that means the page has been reloaded.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:181:24
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L181
3) [chromium] › interactivity/router-navigate.spec.ts:151:6 › Router navigate › should reload the next page when the timeout ends
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected string: "http://localhost:8889/?p=39&disable_server_directive_processing=true"
Received string: "http://localhost:8889/?p=41&disable_server_directive_processing=true"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
- locator resolved to <html lang="en-US">…</html>
- unexpected value "http://localhost:8889/?p=41&disable_server_directive_processing=true"
179 | await page.getByTestId( 'link 1' ).click();
180 |
> 181 | await expect( page ).toHaveURL( link1 );
| ^
182 | await expect( title ).toHaveText( 'Link 1' );
183 |
184 | // If timeout is 10000, that means the page has been reloaded.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:181:24
|
Run the tests:
test/e2e/specs/interactivity/router-navigate.spec.ts#L230
4) [chromium] › interactivity/router-navigate.spec.ts:214:6 › Router navigate › should overwrite the state with the one serialized in the new page
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('prop1')
Expected string: "link 1"
Received string: "main"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByTestId('prop1')
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
- locator resolved to <div data-testid="prop1" data-wp-text="state.data.pro…>main</div>
- unexpected value "main"
228 | // Old values not overwritten should remain the same.
229 | // New properties should appear.
> 230 | await expect( prop1 ).toHaveText( 'link 1' );
| ^
231 | await expect( prop2 ).toHaveText( 'main' );
232 | await expect( prop3 ).toHaveText( 'link 1' );
233 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/router-navigate.spec.ts:230:25
|
Archive debug artifacts (screenshots, traces)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run the tests
15 failed
[chromium] › interactivity/router-navigate.spec.ts:59:6 › Router navigate › should update the HTML only for the latest navigation
[chromium] › interactivity/router-navigate.spec.ts:105:6 › Router navigate › should update the URL from the last navigation if only varies in the URL fragment
[chromium] › interactivity/router-navigate.spec.ts:151:6 › Router navigate › should reload the next page when the timeout ends
[chromium] › interactivity/router-navigate.spec.ts:214:6 › Router navigate › should overwrite the state with the one serialized in the new page
[chromium] › interactivity/router-navigate.spec.ts:242:6 › Router navigate › should not try to overwrite getters with values from the initial data
[chromium] › interactivity/router-navigate.spec.ts:270:6 › Router navigate › should force a page reload when navigating to a page with `clientNavigationDisabled`
[chromium] › interactivity/router-regions.spec.ts:40:6 › Router regions › should update after navigation
[chromium] › interactivity/router-regions.spec.ts:58:6 › Router regions › should preserve state across pages
[chromium] › interactivity/router-regions.spec.ts:74:6 › Router regions › should preserve context across pages
[chromium] › interactivity/router-regions.spec.ts:90:6 › Router regions › can be nested ────────
[chromium] › interactivity/router-regions.spec.ts:101:6 › Router regions › Page title is updated 2
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:93:3 › Navigation block - Frontend interactivity › Overlay menu › Overlay menu interactions in Safari (@WebKit)
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:268:3 › Navigation block - Frontend interactivity › Submenu mouse and keyboard interactions › Submenu interactions on Safari (@WebKit)
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:378:3 › Navigation block - Frontend interactivity › Submenus (Arrow setting) (@Firefox, @WebKit) › submenu click on the arrow interactions
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:470:3 › Navigation block - Frontend interactivity › Page list block (@Firefox, @WebKit) › page-list submenu user interactions
206 passed (18.1m)
|
Loading