test(browser): 扩展 richer matching interception harness

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
walker1211
2026-04-19 00:32:55 +08:00
co-authored by Claude Opus 4.7
parent a5ef77a3d8
commit ef06564b60
@@ -105,6 +105,7 @@ type MockInterceptRuleMatch = {
method: string;
resourceType?: string;
requestId?: string;
requestHeaders?: Record<string, string>;
};
type MockFulfilledRequest = {
@@ -714,6 +715,7 @@ function createMockBrowser(pagesInput: MockPageState[]) {
request: {
url: paused.url,
method: paused.method,
headers: paused.requestHeaders || {},
},
},
})