mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-31 22:14:25 +01:00
D2: give the memory-leak reproducer's fake request isNavigationRequest()
wirePageEvents now runs the navigation guard on every request event; the fake request adapter supplies the method real Playwright requests have.
This commit is contained in:
1 parent
10eac648ba
commit
3995f0ebf2
1 file changed
+1
@@ -97,6 +97,7 @@ describe('memory-leak reproducer: requestfinished does not materialize bodies',
|
||||
page.emit('request', {
|
||||
url: () => `https://example.invalid/asset/${i}`,
|
||||
method: () => 'GET',
|
||||
isNavigationRequest: () => false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user