fix timeout

This commit is contained in:
Simon Knott 2025-02-06 18:19:37 +01:00
parent f944f5445f
commit ffc0ea9cb5
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -64,6 +64,7 @@ export class APIRequest implements api.APIRequest {
async newContext(options: NewContextOptions = {}): Promise<APIRequestContext> { async newContext(options: NewContextOptions = {}): Promise<APIRequestContext> {
options = { options = {
...this._playwright._defaultContextOptions, ...this._playwright._defaultContextOptions,
timeout: this._playwright._defaultContextTimeout,
...options, ...options,
}; };
const storageState = typeof options.storageState === 'string' ? const storageState = typeof options.storageState === 'string' ?