Skip to content

Commit 9aaa5a2

Browse files
add test
1 parent c6cc7da commit 9aaa5a2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/tools/network.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,17 @@ describe('network', () => {
3838
);
3939
});
4040
});
41+
it('should not add the request list', async () => {
42+
await withBrowser(async (response, context) => {
43+
const page = await context.getSelectedPage();
44+
await page.goto('data:text/html,<div>Hello MCP</div>');
45+
await getNetworkRequest.handler(
46+
{params: {url: 'data:text/html,<div>Hello MCP</div>'}},
47+
response,
48+
context,
49+
);
50+
assert(!response.includeNetworkRequests);
51+
});
52+
});
4153
});
4254
});

0 commit comments

Comments
 (0)