@empiricalrun/playwright-utils 0.20.8 → 0.20.10
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,20 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.20.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ae65525: fix: remove the runtime planner before master agent call
|
|
8
|
+
- Updated dependencies [698ad31]
|
|
9
|
+
- Updated dependencies [23f875f]
|
|
10
|
+
- @empiricalrun/test-gen@0.45.0
|
|
11
|
+
|
|
12
|
+
## 0.20.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- fcf7ef2: feat: support virtual SMTP use-case in EmailClient
|
|
17
|
+
|
|
3
18
|
## 0.20.8
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/email.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/email.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,WAAW,CAAC;AAGxC,KAAK,IAAI,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAIF,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GED
|
@@ -17,8 +17,16 @@ class EmailClient {
|
|
|
17
17
|
this.timeout = timeout;
|
|
18
18
|
const emailId = knownEmailId ||
|
|
19
19
|
[...Array(7)].map(() => Math.random().toString(36)[2]).join("");
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
if (emailId.includes("@")) {
|
|
21
|
+
// When EmailClient is used as a virtual SMTP server,
|
|
22
|
+
// we can read emails sent to any domain. These can be
|
|
23
|
+
// specified by setting the emailId to a full address.
|
|
24
|
+
this.address = emailId;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const emailDomain = `${this.serverId}.mailosaur.net`;
|
|
28
|
+
this.address = `${emailId}@${emailDomain}`;
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
getAddress() {
|
|
24
32
|
return this.address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/highlight/click.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAQ,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AA8BrC,KAAK,cAAc,GAAG;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,GACnB,cAAc,GAAG,SAAS,CAiC5B;AA4FD,wBAAgB,UAAU,CACxB,YAAY,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,EAC/C,MAAM,EAAE,MAAM,QA+Df"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.patchClick = exports.extractInterceptingElement = void 0;
|
|
4
|
-
const planner_1 = require("@empiricalrun/test-gen/agent/master/planner");
|
|
5
4
|
const run_1 = require("@empiricalrun/test-gen/agent/master/run");
|
|
6
5
|
const utils_1 = require("../utils");
|
|
7
6
|
// Static flag to track if click has been patched
|
|
@@ -125,16 +124,6 @@ async function runAgentOnOverlay(pageRef, element) {
|
|
|
125
124
|
The popup can be identified with its text content:
|
|
126
125
|
${content}`
|
|
127
126
|
: ``;
|
|
128
|
-
const plannerResp = await (0, planner_1.runtimePlannerWithScreenshot)({
|
|
129
|
-
task: `
|
|
130
|
-
Find a way to dismiss the popup. If the popup is non dismissible or there is no popup then return immediately.
|
|
131
|
-
Also note that you just need to dismiss popup and do nothing else.`,
|
|
132
|
-
conversation: [],
|
|
133
|
-
page: pageRef,
|
|
134
|
-
});
|
|
135
|
-
if (plannerResp.isDone) {
|
|
136
|
-
throw new Error("No active popup found");
|
|
137
|
-
}
|
|
138
127
|
await (0, run_1.createTestUsingMasterAgent)({
|
|
139
128
|
task: `
|
|
140
129
|
Find a way to dismiss the popup. If the popup is non dismissible or there is no popup then return immediately.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"rimraf": "^6.0.1",
|
|
45
45
|
"@empiricalrun/llm": "^0.9.35",
|
|
46
46
|
"@empiricalrun/r2-uploader": "^0.3.8",
|
|
47
|
-
"@empiricalrun/test-gen": "^0.
|
|
47
|
+
"@empiricalrun/test-gen": "^0.45.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"dev": "tsc --build --watch",
|