@empiricalrun/playwright-utils 0.18.1 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.18.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cf49045: fix: added check for intercept event
|
|
8
|
+
- Updated dependencies [65061d8]
|
|
9
|
+
- @empiricalrun/llm@0.9.28
|
|
10
|
+
- @empiricalrun/test-gen@0.38.33
|
|
11
|
+
|
|
12
|
+
## 0.18.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 7abd4c0: fix: increase default test timeout in playwright-utils from 5 minutes to 15 minutes
|
|
17
|
+
|
|
18
|
+
## 0.18.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [efed142]
|
|
23
|
+
- @empiricalrun/test-gen@0.38.32
|
|
24
|
+
|
|
3
25
|
## 0.18.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,wBAAgB,UAAU,CAAC,YAAY,EAAE;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,wBAAgB,UAAU,CAAC,YAAY,EAAE;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,QA+C9D"}
|
|
@@ -11,9 +11,13 @@ function patchClick(LocatorClass) {
|
|
|
11
11
|
await originalClick.apply(this, [options]);
|
|
12
12
|
}
|
|
13
13
|
catch (e) {
|
|
14
|
-
//
|
|
14
|
+
//e is not typed, setting it as any to avoid ts-ignore
|
|
15
|
+
// If its a test gen or it's not an intercept error, don't trigger the flow
|
|
16
|
+
if (!e.message?.includes("subtree intercepts pointer events")) {
|
|
17
|
+
throw e;
|
|
18
|
+
}
|
|
15
19
|
if (process.env.TEST_GEN_TOKEN) {
|
|
16
|
-
throw
|
|
20
|
+
throw e;
|
|
17
21
|
}
|
|
18
22
|
const plannerResp = await (0, planner_1.runtimePlannerWithScreenshot)({
|
|
19
23
|
task: "Find a way to dismiss the popup. If the popup is non dismissible or there is no popup then return immediately. Also note that you just need to dismiss popup and do nothing else.",
|
|
@@ -23,7 +27,7 @@ function patchClick(LocatorClass) {
|
|
|
23
27
|
page: this._frame._page,
|
|
24
28
|
});
|
|
25
29
|
if (plannerResp.isDone) {
|
|
26
|
-
throw new Error(
|
|
30
|
+
throw new Error("No active popup found. Original error: ", e);
|
|
27
31
|
}
|
|
28
32
|
await (0, run_1.createTestUsingMasterAgent)({
|
|
29
33
|
task: "Find a way to dismiss the popup. If the popup is non dismissible or there is no popup then return immediately. Also note that you just need to dismiss popup and do nothing else.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"playwright-extra": "^4.3.6",
|
|
42
42
|
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
|
|
43
43
|
"rimraf": "^6.0.1",
|
|
44
|
-
"@empiricalrun/
|
|
45
|
-
"@empiricalrun/
|
|
46
|
-
"@empiricalrun/
|
|
44
|
+
"@empiricalrun/test-gen": "^0.38.33",
|
|
45
|
+
"@empiricalrun/llm": "^0.9.28",
|
|
46
|
+
"@empiricalrun/r2-uploader": "^0.3.7"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"dev": "tsc --build --watch",
|