@empiricalrun/playwright-utils 0.25.0 → 0.25.2
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 +26 -0
- package/dist/test/scripts/pw-locator-patch/highlight/click.d.ts.map +1 -1
- package/dist/test/scripts/pw-locator-patch/highlight/click.js +0 -4
- package/dist/test/scripts/pw-locator-patch/highlight/hover.d.ts.map +1 -1
- package/dist/test/scripts/pw-locator-patch/highlight/hover.js +0 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.25.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 35f78e5: fix: remove test-gen token check for overlay dismiss
|
|
8
|
+
- Updated dependencies [f4f4c5d]
|
|
9
|
+
- Updated dependencies [6a19298]
|
|
10
|
+
- Updated dependencies [cbe5823]
|
|
11
|
+
- @empiricalrun/llm@0.13.1
|
|
12
|
+
- @empiricalrun/test-gen@0.52.3
|
|
13
|
+
|
|
14
|
+
## 0.25.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [c490603]
|
|
19
|
+
- Updated dependencies [68640d2]
|
|
20
|
+
- Updated dependencies [486264f]
|
|
21
|
+
- Updated dependencies [ae91e37]
|
|
22
|
+
- Updated dependencies [0704b28]
|
|
23
|
+
- Updated dependencies [3ed20a3]
|
|
24
|
+
- Updated dependencies [02a2439]
|
|
25
|
+
- Updated dependencies [01fa143]
|
|
26
|
+
- @empiricalrun/test-gen@0.52.2
|
|
27
|
+
- @empiricalrun/llm@0.13.0
|
|
28
|
+
|
|
3
29
|
## 0.25.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQrC,wBAAgB,UAAU,CACxB,YAAY,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,EAC/C,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAQrC,wBAAgB,UAAU,CACxB,YAAY,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,EAC/C,MAAM,EAAE,MAAM,QAsDf"}
|
|
@@ -30,10 +30,6 @@ function patchClick(LocatorClass, testFn) {
|
|
|
30
30
|
// Overwrite the stack trace to show the original click (remove patch)
|
|
31
31
|
Error.captureStackTrace(originalError, LocatorClass.prototype.click);
|
|
32
32
|
}
|
|
33
|
-
if (process.env.TEST_GEN_TOKEN) {
|
|
34
|
-
// We skip overlay dismissal if its happening during test-gen
|
|
35
|
-
throw originalError;
|
|
36
|
-
}
|
|
37
33
|
if (!(0, dismiss_overlays_1.isErrorSupported)(originalError.message)) {
|
|
38
34
|
// TODO: Playwright actionability checks have precedence: if an overlay blocks a
|
|
39
35
|
// disabled button, the error will not show interception -- it will focus on "not enabled".
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/hover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC,wBAAgB,UAAU,CACxB,YAAY,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,EAC/C,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/hover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC,wBAAgB,UAAU,CACxB,YAAY,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,EAC/C,MAAM,EAAE,MAAM,QA+Cf"}
|
|
@@ -28,10 +28,6 @@ function patchHover(LocatorClass, testFn) {
|
|
|
28
28
|
if (originalError instanceof Error) {
|
|
29
29
|
Error.captureStackTrace(originalError, LocatorClass.prototype.hover);
|
|
30
30
|
}
|
|
31
|
-
if (process.env.TEST_GEN_TOKEN) {
|
|
32
|
-
// We skip overlay dismissal if its happening during test-gen
|
|
33
|
-
throw originalError;
|
|
34
|
-
}
|
|
35
31
|
if (!(0, dismiss_overlays_1.isErrorSupported)(originalError.message)) {
|
|
36
32
|
throw originalError;
|
|
37
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"mime": "3.0.0",
|
|
43
43
|
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
|
|
44
44
|
"rimraf": "^6.0.1",
|
|
45
|
-
"@empiricalrun/llm": "^0.
|
|
45
|
+
"@empiricalrun/llm": "^0.13.1",
|
|
46
46
|
"@empiricalrun/r2-uploader": "^0.3.8",
|
|
47
|
-
"@empiricalrun/test-gen": "^0.52.
|
|
47
|
+
"@empiricalrun/test-gen": "^0.52.3"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"dev": "tsc --build --watch",
|