@@ -202,15 +202,16 @@ Call handle_dialog to handle it before continuing.`,
202202 await withBrowser ( async ( response , context ) => {
203203 response . setIncludeNetworkRequests ( true ) ;
204204 context . getNetworkRequests = ( ) => {
205- return [ getMockRequest ( ) ] ;
205+ return [ getMockRequest ( { stableId : 1 } ) , getMockRequest ( { stableId : 2 } ) ] ;
206206 } ;
207207 const result = await response . handle ( 'test' , context ) ;
208208 assert . strictEqual (
209209 result [ 0 ] . text ,
210210 `# test response
211211## Network requests
212- Showing 1-1 of 1 (Page 1 of 1).
213- http://example.com GET [pending]` ,
212+ Showing 1-2 of 2 (Page 1 of 1).
213+ reqid 1 - http://example.com GET [pending]
214+ reqid 2 - http://example.com GET [pending]` ,
214215 ) ;
215216 } ) ;
216217 } ) ;
@@ -266,7 +267,7 @@ ${JSON.stringify({request: 'body'})}
266267${ JSON . stringify ( { response : 'body' } ) }
267268## Network requests
268269Showing 1-1 of 1 (Page 1 of 1).
269- http://example.com POST [success - 200]` ,
270+ reqid 1 - http://example.com POST [success - 200]`,
270271 ) ;
271272 } ) ;
272273 } ) ;
@@ -289,7 +290,7 @@ Status: [pending]
289290- content-size:10
290291## Network requests
291292Showing 1-1 of 1 (Page 1 of 1).
292- http://example.com GET [pending]` ,
293+ reqid 1 - http://example.com GET [pending]`,
293294 ) ;
294295 } ) ;
295296 } ) ;
@@ -354,8 +355,8 @@ describe('McpResponse network request filtering', () => {
354355 `# test response
355356## Network requests
356357Showing 1-2 of 2 (Page 1 of 1).
357- http://example.com GET [pending]
358- http://example.com GET [pending]` ,
358+ reqid 1 - http://example.com GET [pending]
359+ reqid 1 - http://example.com GET [pending]`,
359360 ) ;
360361 } ) ;
361362 } ) ;
@@ -378,7 +379,7 @@ http://example.com GET [pending]`,
378379 `# test response
379380## Network requests
380381Showing 1-1 of 1 (Page 1 of 1).
381- http://example.com GET [pending]` ,
382+ reqid 1 - http://example.com GET [pending]`,
382383 ) ;
383384 } ) ;
384385 } ) ;
@@ -423,11 +424,11 @@ No requests found.`,
423424 `# test response
424425## Network requests
425426Showing 1-5 of 5 (Page 1 of 1).
426- http://example.com GET [pending]
427- http://example.com GET [pending]
428- http://example.com GET [pending]
429- http://example.com GET [pending]
430- http://example.com GET [pending]` ,
427+ reqid 1 - http://example.com GET [pending]
428+ reqid 1 - http://example.com GET [pending]
429+ reqid 1 - http://example.com GET [pending]
430+ reqid 1 - http://example.com GET [pending]
431+ reqid 1 - http://example.com GET [pending]`,
431432 ) ;
432433 } ) ;
433434 } ) ;
@@ -452,11 +453,11 @@ http://example.com GET [pending]`,
452453 `# test response
453454## Network requests
454455Showing 1-5 of 5 (Page 1 of 1).
455- http://example.com GET [pending]
456- http://example.com GET [pending]
457- http://example.com GET [pending]
458- http://example.com GET [pending]
459- http://example.com GET [pending]` ,
456+ reqid 1 - http://example.com GET [pending]
457+ reqid 1 - http://example.com GET [pending]
458+ reqid 1 - http://example.com GET [pending]
459+ reqid 1 - http://example.com GET [pending]
460+ reqid 1 - http://example.com GET [pending]`,
460461 ) ;
461462 } ) ;
462463 } ) ;
0 commit comments