Stabilize Playwright pointer interactions after lazy loading
This commit is contained in:
parent
9242becb1d
commit
4cb6487f85
12 changed files with 59 additions and 38 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue