@e2e-dev/electron 0.1.0 → 0.1.1-nightly-20261202030509
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/dist/.build.json +1 -1
- package/dist/actions.js +5 -1
- package/package.json +6 -6
package/dist/.build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.1.
|
|
1
|
+
{"version":"0.1.1-nightly-20261202030509"}
|
package/dist/actions.js
CHANGED
|
@@ -344,7 +344,8 @@ async function longPress(budget, window, at, durationMs = LONG_PRESS_MS) {
|
|
|
344
344
|
/**
|
|
345
345
|
* Presses at `from` and drags to the point `target` answers once the pointer
|
|
346
346
|
* is down, through a move in between so drag handlers see motion before the
|
|
347
|
-
* drop
|
|
347
|
+
* drop, and a second move at the target so an HTML drag drops there; paced
|
|
348
|
+
* over `durationMs` when given.
|
|
348
349
|
*/
|
|
349
350
|
async function drag(budget, window, from, target, durationMs) {
|
|
350
351
|
const { mouse } = window.page;
|
|
@@ -358,6 +359,9 @@ async function drag(budget, window, from, target, durationMs) {
|
|
|
358
359
|
if (durationMs !== undefined)
|
|
359
360
|
await sleep(durationMs / steps, budget.operation.signal);
|
|
360
361
|
}
|
|
362
|
+
// An HTML drag drops only once the target has seen a move after the one that entered it: a release right after the
|
|
363
|
+
// first move over the target ends the drag with no drop.
|
|
364
|
+
await budget.send(() => mouse.move(to.x, to.y));
|
|
361
365
|
}
|
|
362
366
|
finally {
|
|
363
367
|
await mouse.up();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2e-dev/electron",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-nightly-20261202030509",
|
|
4
4
|
"description": "Electron engine for e2e agentic end-to-end testing: launches an Electron app and drives its windows through Chromium's accessibility tree",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"e2e",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"NOTICE"
|
|
43
43
|
],
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@e2e-dev/core": "
|
|
46
|
-
"e2e": "
|
|
45
|
+
"@e2e-dev/core": "0.26.1-nightly-20261202030509",
|
|
46
|
+
"e2e": "0.26.1-nightly-20261202030509",
|
|
47
47
|
"electron": "*"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@e2e-dev/core": "0.26.
|
|
55
|
+
"@e2e-dev/core": "0.26.1-nightly-20261202030509",
|
|
56
56
|
"@napi-rs/image": "1.16.0",
|
|
57
57
|
"@types/node": "26.6.11",
|
|
58
|
-
"devtools-protocol": "0.0.
|
|
59
|
-
"e2e": "0.26.
|
|
58
|
+
"devtools-protocol": "0.0.1758431",
|
|
59
|
+
"e2e": "0.26.1-nightly-20261202030509",
|
|
60
60
|
"electron": "45.5.0",
|
|
61
61
|
"typescript": "7.0.2",
|
|
62
62
|
"vitest": "5.1.2"
|