Skip to content

Commit ed9b476

Browse files
author
DavertMik
committed
fixed PW tests
1 parent d6a25ce commit ed9b476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class Playwright extends Helper {
525525
}
526526

527527
// load pre-saved cookies
528-
if (test.opts.cookies) contextOptions.storageState = { cookies: test.opts.cookies }
528+
if (test?.opts?.cookies) contextOptions.storageState = { cookies: test.opts.cookies }
529529

530530
if (this.storageState) contextOptions.storageState = this.storageState
531531
if (this.options.userAgent) contextOptions.userAgent = this.options.userAgent

0 commit comments

Comments
 (0)