We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a25ce commit ed9b476Copy full SHA for ed9b476
lib/helper/Playwright.js
@@ -525,7 +525,7 @@ class Playwright extends Helper {
525
}
526
527
// load pre-saved cookies
528
- if (test.opts.cookies) contextOptions.storageState = { cookies: test.opts.cookies }
+ if (test?.opts?.cookies) contextOptions.storageState = { cookies: test.opts.cookies }
529
530
if (this.storageState) contextOptions.storageState = this.storageState
531
if (this.options.userAgent) contextOptions.userAgent = this.options.userAgent
0 commit comments