Skip to content

Commit efdb1c0

Browse files
author
DavertMik
committed
fix: correct waitForFunction argument order in waitCurrentPathEquals
1 parent 79f0ea7 commit efdb1c0

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
@@ -3441,8 +3441,8 @@ class Playwright extends Helper {
34413441
const normalizePath = p => (p === '' || p === '/' ? '/' : p.replace(/\/+/g, '/').replace(/\/$/, '') || '/')
34423442
return normalizePath(actualPath) === expectedPath
34433443
},
3444-
{ timeout: waitTimeout },
34453444
normalizedPath,
3445+
{ timeout: waitTimeout },
34463446
)
34473447
} catch (e) {
34483448
const currentUrl = await this._getPageUrl()

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-
{ timeout: waitTimeout },
25082507
normalizedPath,
2508+
{ timeout: waitTimeout },
25092509
)
25102510
.catch(async e => {
25112511
const currUrl = await this._getPageUrl()

0 commit comments

Comments
 (0)