Skip to content

Commit

Permalink
dragAndDropThought: Reintroduce sleep after mouseUp.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Dec 3, 2024
1 parent d56e643 commit eb5cf1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/e2e/puppeteer/helpers/dragAndDropThought.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sleep from '../../../util/sleep'
import { page } from '../setup'
import getEditable from './getEditable'
import hide from './hide'
Expand Down Expand Up @@ -97,6 +98,10 @@ const dragAndDropThought = async (
if (mouseUp) {
await page.mouse.up()
await waitUntil(() => !document.querySelector('[data-drag-in-progress="true"]'))

// TODO: Why does drop/DragAndDropThought test fails intermittently without a small delay?
// QuickDropPanel and bullet highlight are visible.
await sleep(500)
}

// Hide QuickDropPanel by defafult.
Expand Down

0 comments on commit eb5cf1b

Please sign in to comment.