Skip to content

Commit 18c633b

Browse files
author
DavertMik
committed
fixed within in pw
1 parent f71c946 commit 18c633b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/helper/Playwright.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,11 @@ class Playwright extends Helper {
12041204

12051205
async _withinEnd() {
12061206
this.withinLocator = null
1207-
this.context = await this.page
1207+
if (this.page) {
1208+
this.context = await this.page
1209+
} else {
1210+
this.context = null
1211+
}
12081212
this.contextLocator = null
12091213
this.frame = null
12101214
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"@inquirer/testing": "^2.1.49",
134134
"@pollyjs/adapter-puppeteer": "6.0.6",
135135
"@pollyjs/core": "6.0.6",
136-
"@testomatio/reporter": "^2.3.0",
136+
"@testomatio/reporter": "^2.3.1",
137137
"@types/chai": "5.2.2",
138138
"@types/inquirer": "9.0.7",
139139
"@types/node": "24.0.10",

0 commit comments

Comments
 (0)