File tree Expand file tree Collapse file tree
tests/integration/rsc-mf/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -444,6 +444,12 @@ function runTests({ mode }: TestConfig) {
444444 el => el . textContent || '0' ,
445445 ) ,
446446 ) ;
447+ const hostProxyMapEntryCount = Number (
448+ await page . $eval (
449+ '.host-proxy-map-entry-count' ,
450+ el => el . textContent || '0' ,
451+ ) ,
452+ ) ;
447453 expect ( hostProxyMapKeyCount ) . toBe ( mappedProxyActionIdSet . size ) ;
448454 expect ( new Set ( actionRequestIds ) . size ) . toBeLessThanOrEqual (
449455 hostProxyMapKeyCount ,
@@ -478,6 +484,9 @@ function runTests({ mode }: TestConfig) {
478484 bundledProxyActionIdSet . has ( id ) ,
479485 ) ;
480486 expect ( usesDirectProxyIds || usesBundledProxyIds ) . toBe ( true ) ;
487+ if ( ! usesDirectProxyIds || ! usesBundledProxyIds ) {
488+ expect ( hostProxyMapKeyCount ) . toBeLessThan ( hostProxyMapEntryCount ) ;
489+ }
481490 expect (
482491 actionRequestIds . every (
483492 id =>
You can’t perform that action at this time.
0 commit comments