Skip to content

Commit 9b156fd

Browse files
author
DavertMik
committed
fix: correct waitForFunction argument order in Puppeteer waitCurrentPathEquals
1 parent efdb1c0 commit 9b156fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Puppeteer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,8 +2504,8 @@ class Puppeteer extends Helper {
25042504
const normalizePath = p => (p === '' || p === '/' ? '/' : p.replace(/\/+/g, '/').replace(/\/$/, '') || '/')
25052505
return normalizePath(actualPath) === expectedPath
25062506
},
2507-
normalizedPath,
25082507
{ timeout: waitTimeout },
2508+
normalizedPath,
25092509
)
25102510
.catch(async e => {
25112511
const currUrl = await this._getPageUrl()

0 commit comments

Comments
 (0)