diff --git a/tests/page/page-drag.spec.ts b/tests/page/page-drag.spec.ts index f6356ea2af..981ef84279 100644 --- a/tests/page/page-drag.spec.ts +++ b/tests/page/page-drag.spec.ts @@ -432,3 +432,26 @@ it('should handle custom dataTransfer', async ({ page, browserName, isWindows }) data: 'Hello World', }); }); + +it('what happens when dragging element is destroyed', async ({ page, browserName }) => { + it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21621' }); + it.fixme(browserName === 'firefox', `hangs without any response for Page.dispatchMouseEvent({ type: 'mouseup' })`); + + await page.setContent(` + +