@@ -66,6 +66,8 @@ async function renderRemoteRscIntoHost({ hostPort, page }: TestContext) {
6666 expect ( html ) . toContain ( 'host-remote-bundled-meta-kind' ) ;
6767 expect ( html ) . toContain ( 'host-proxy-action-id-count' ) ;
6868 expect ( html ) . toContain ( 'host-proxy-map-entry-count' ) ;
69+ expect ( html ) . toContain ( 'host-mapped-proxy-action-ids' ) ;
70+ expect ( html ) . toContain ( 'host-proxy-map-covers-all' ) ;
6971 expect ( html ) . toContain ( 'host-proxy-action-ids' ) ;
7072 expect ( html ) . toContain ( 'host-direct-proxy-action-ids' ) ;
7173 expect ( html ) . toContain ( 'host-bundled-proxy-action-ids' ) ;
@@ -123,6 +125,19 @@ async function renderRemoteRscIntoHost({ hostPort, page }: TestContext) {
123125 el => el . textContent ?. trim ( ) ,
124126 ) ;
125127 expect ( hostProxyMapEntryCount ) . toBe ( '8' ) ;
128+ const hostMappedProxyActionIds = await page . $eval (
129+ '.host-mapped-proxy-action-ids' ,
130+ el => el . textContent ?. trim ( ) ,
131+ ) ;
132+ const hostMappedProxyActionIdList = hostMappedProxyActionIds
133+ ?. split ( ',' )
134+ . filter ( Boolean ) as string [ ] ;
135+ expect ( hostMappedProxyActionIdList . length ) . toBe ( 8 ) ;
136+ const hostProxyMapCoversAll = await page . $eval (
137+ '.host-proxy-map-covers-all' ,
138+ el => el . textContent ?. trim ( ) ,
139+ ) ;
140+ expect ( hostProxyMapCoversAll ) . toBe ( 'true' ) ;
126141 const hostProxyActionIds = await page . $eval ( '.host-proxy-action-ids' , el =>
127142 el . textContent ?. trim ( ) ,
128143 ) ;
@@ -135,6 +150,9 @@ async function renderRemoteRscIntoHost({ hostPort, page }: TestContext) {
135150 expect ( hostProxyActionIdList . every ( id => / ^ [ a - f 0 - 9 ] { 64 , } $ / i. test ( id ) ) ) . toBe (
136151 true ,
137152 ) ;
153+ expect (
154+ hostMappedProxyActionIdList . every ( id => hostProxyActionIdList . includes ( id ) ) ,
155+ ) . toBe ( true ) ;
138156 const hostDirectProxyActionIds = await page . $eval (
139157 '.host-direct-proxy-action-ids' ,
140158 el => el . textContent ?. trim ( ) ,
@@ -397,6 +415,19 @@ function runTests({ mode }: TestConfig) {
397415 expect ( actionRequestIds . every ( id => hostProxyActionIdSet . has ( id ) ) ) . toBe (
398416 true ,
399417 ) ;
418+ const mappedProxyActionIdSet = new Set (
419+ (
420+ await page . $eval (
421+ '.host-mapped-proxy-action-ids' ,
422+ el => el . textContent || '' ,
423+ )
424+ )
425+ . split ( ',' )
426+ . filter ( Boolean ) ,
427+ ) ;
428+ expect ( actionRequestIds . every ( id => mappedProxyActionIdSet . has ( id ) ) ) . toBe (
429+ true ,
430+ ) ;
400431 const directProxyActionIdSet = new Set (
401432 (
402433 await page . $eval (
0 commit comments