test: fix mouse click down timeout

This commit is contained in:
himself65 2023-05-31 16:22:43 +08:00
parent 90e70ed986
commit f1b3a10969
No known key found for this signature in database
GPG Key ID: 35F07049B7A1E625

View File

@ -19,7 +19,7 @@ test('drag a page from "All pages" list onto the "Trash" folder in the sidebar t
// Ref: https://playwright.dev/docs/input#dragging-manually
await page.getByText('AFFiNE - not just a note taking app').hover();
await page.mouse.down();
await page.waitForTimeout(10);
await page.waitForTimeout(1000);
await page.getByText('Trash').hover();
await page.mouse.up();