Stabilize Playwright pointer interactions after lazy loading
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m11s
Validate and deploy Sokko G / deploy (push) Successful in 10s

This commit is contained in:
Shinuwa 2026-10-30 14:14:23 +01:00
parent 9242becb1d
commit 4cb6487f85
12 changed files with 59 additions and 38 deletions

View file

@ -1,6 +1,7 @@
// Rôle : vérifie les dimensions, sélections et échanges de cellules du tableau réel.
import { expect, test } from "@playwright/test";
import { Buffer } from "node:buffer";
import { movePointerTo, startPointerDrag } from "./helpers/pointer.js";
import { createToolboxImportPayload } from "./helpers/toolboxImport.js";
import { readStoredModuleData } from "./helpers/storage.js";
@ -26,9 +27,8 @@ function cell(table, address) {
}
async function drag(page, from, to) {
await from.hover();
await page.mouse.down();
await to.hover();
await startPointerDrag(page, from);
await movePointerTo(page, to);
await page.mouse.up();
}