@@ -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 } ) ;
@@ -353,8 +354,8 @@ describe('McpResponse network request filtering', () => {
353354 `# test response
354355## Network requests
355356Showing 1-2 of 2 (Page 1 of 1).
356- http://example.com GET [pending]
357- http://example.com GET [pending]` ,
357+ reqid 1 - http://example.com GET [pending]
358+ reqid 1 - http://example.com GET [pending]`,
358359 ) ;
359360 } ) ;
360361 } ) ;
@@ -377,7 +378,7 @@ http://example.com GET [pending]`,
377378 `# test response
378379## Network requests
379380Showing 1-1 of 1 (Page 1 of 1).
380- http://example.com GET [pending]` ,
381+ reqid 1 - http://example.com GET [pending]`,
381382 ) ;
382383 } ) ;
383384 } ) ;
@@ -422,11 +423,11 @@ No requests found.`,
422423 `# test response
423424## Network requests
424425Showing 1-5 of 5 (Page 1 of 1).
425- http://example.com GET [pending]
426- http://example.com GET [pending]
427- http://example.com GET [pending]
428- http://example.com GET [pending]
429- http://example.com GET [pending]` ,
426+ reqid 1 - 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]`,
430431 ) ;
431432 } ) ;
432433 } ) ;
@@ -451,11 +452,11 @@ http://example.com GET [pending]`,
451452 `# test response
452453## Network requests
453454Showing 1-5 of 5 (Page 1 of 1).
454- http://example.com GET [pending]
455- http://example.com GET [pending]
456- http://example.com GET [pending]
457- http://example.com GET [pending]
458- http://example.com GET [pending]` ,
455+ reqid 1 - 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]`,
459460 ) ;
460461 } ) ;
461462 } ) ;
0 commit comments