Skip to content

Commit db078ac

Browse files
committed
test(rsc-mf): bind posted action ids to effective map key count
1 parent c220479 commit db078ac

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/integration/rsc-mf/tests/index.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,16 @@ function runTests({ mode }: TestConfig) {
438438
.split(',')
439439
.filter(Boolean),
440440
);
441+
const hostProxyMapKeyCount = Number(
442+
await page.$eval(
443+
'.host-proxy-map-key-count',
444+
el => el.textContent || '0',
445+
),
446+
);
447+
expect(hostProxyMapKeyCount).toBe(mappedProxyActionIdSet.size);
448+
expect(new Set(actionRequestIds).size).toBeLessThanOrEqual(
449+
hostProxyMapKeyCount,
450+
);
441451
expect(actionRequestIds.every(id => mappedProxyActionIdSet.has(id))).toBe(
442452
true,
443453
);

0 commit comments

Comments
 (0)