Skip to content

Commit 518d5fc

Browse files
author
DavertMik
committed
fixed playwright/puppeteer issues
1 parent a7c50ac commit 518d5fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ class Playwright extends Helper {
484484
this.currentRunningTest = test
485485

486486
recorder.retry({
487-
retries: test.opts?.conditionalRetries || 3,
487+
retries: test?.opts?.conditionalRetries || 3,
488488
when: err => {
489489
if (!err || typeof err.message !== 'string') {
490490
return false

lib/helper/Puppeteer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class Puppeteer extends Helper {
312312
this.sessionPages = {}
313313
this.currentRunningTest = test
314314
recorder.retry({
315-
retries: test.opts?.conditionalRetries || 3,
315+
retries: test?.opts?.conditionalRetries || 3,
316316
when: err => {
317317
if (!err || typeof err.message !== 'string') {
318318
return false

0 commit comments

Comments
 (0)