mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +00:00
test(browser): 扩展 richer matching interception harness
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
a5ef77a3d8
commit
ef06564b60
1 file changed
+2
@@ -105,6 +105,7 @@ type MockInterceptRuleMatch = {
|
|||||||
method: string;
|
method: string;
|
||||||
resourceType?: string;
|
resourceType?: string;
|
||||||
requestId?: string;
|
requestId?: string;
|
||||||
|
requestHeaders?: Record<string, string>;
|
||||||
};
|
};
|
||||||
|
|
||||||
type MockFulfilledRequest = {
|
type MockFulfilledRequest = {
|
||||||
@@ -714,6 +715,7 @@ function createMockBrowser(pagesInput: MockPageState[]) {
|
|||||||
request: {
|
request: {
|
||||||
url: paused.url,
|
url: paused.url,
|
||||||
method: paused.method,
|
method: paused.method,
|
||||||
|
headers: paused.requestHeaders || {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user