@@ -65,6 +65,7 @@ async function renderRemoteRscIntoHost({ hostPort, page }: TestContext) {
6565 expect ( html ) . toContain ( 'host-remote-bundled-server-only' ) ;
6666 expect ( html ) . toContain ( 'host-remote-bundled-meta-kind' ) ;
6767 expect ( html ) . toContain ( 'host-proxy-action-id-count' ) ;
68+ expect ( html ) . toContain ( 'host-proxy-map-entry-count' ) ;
6869 expect ( html ) . toContain ( 'host-proxy-action-ids' ) ;
6970 expect ( html ) . toContain ( 'host-direct-proxy-action-ids' ) ;
7071 expect ( html ) . toContain ( 'host-bundled-proxy-action-ids' ) ;
@@ -117,13 +118,19 @@ async function renderRemoteRscIntoHost({ hostPort, page }: TestContext) {
117118 el => el . textContent ?. trim ( ) ,
118119 ) ;
119120 expect ( hostProxyActionIdCount ) . toBe ( '8' ) ;
121+ const hostProxyMapEntryCount = await page . $eval (
122+ '.host-proxy-map-entry-count' ,
123+ el => el . textContent ?. trim ( ) ,
124+ ) ;
125+ expect ( hostProxyMapEntryCount ) . toBe ( '8' ) ;
120126 const hostProxyActionIds = await page . $eval ( '.host-proxy-action-ids' , el =>
121127 el . textContent ?. trim ( ) ,
122128 ) ;
123129 const hostProxyActionIdList = hostProxyActionIds
124130 ?. split ( ',' )
125131 . filter ( Boolean ) as string [ ] ;
126132 expect ( hostProxyActionIdList . length ) . toBe ( 8 ) ;
133+ expect ( hostProxyActionIdList . length ) . toBe ( Number ( hostProxyMapEntryCount ) ) ;
127134 expect ( new Set ( hostProxyActionIdList ) . size ) . toBe ( 8 ) ;
128135 expect ( hostProxyActionIdList . every ( id => / ^ [ a - f 0 - 9 ] { 64 , } $ / i. test ( id ) ) ) . toBe (
129136 true ,
0 commit comments