summaryrefslogtreecommitdiff
path: root/test/web_snapshot.mjs
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 12:43:53 -0300
committerGabriel Schneider <[email protected]>2026-09-15 17:24:42 -0300
commitc787d59a987ec601cd7b65399543afe6d37a615d (patch)
treeb593436d7aa4c37cb0e59eef5412dbb77ae5faad /test/web_snapshot.mjs
parent8b0bed0427064794725f95cb7b020d7d96956975 (diff)
downloadpardes-c787d59a987ec601cd7b65399543afe6d37a615d.tar.gz
pardes-c787d59a987ec601cd7b65399543afe6d37a615d.zip
Route mouse thumb buttons to jump history
Diffstat (limited to 'test/web_snapshot.mjs')
-rw-r--r--test/web_snapshot.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web_snapshot.mjs b/test/web_snapshot.mjs
index a9cd8dff..61467c4d 100644
--- a/test/web_snapshot.mjs
+++ b/test/web_snapshot.mjs
@@ -82,7 +82,8 @@ async function main() {
if (scenarioModule) {
const scenario = await import(pathToFileURL(scriptPath));
- await scenario.default({ grid, touch: dispatchTouch, wait: waitUntil, stable: waitStable, delay });
+ await scenario.default({ grid, touch: dispatchTouch, wait: waitUntil, stable: waitStable, delay, evaluate,
+ mouse: (event) => client.send("Input.dispatchMouseEvent", event) });
console.error(`web test ok: ${path.relative(process.cwd(), scriptPath)}`);
return;
}