Playwright

Drag and drop

Hard120 pts
  • dragTo
  • Drag and Drop
  • Mouse Gestures
Practice app · Board Planner

Hover menus, drag and drop, context menu, click-and-hold and keyboard shortcuts.

Test URL
/lab/playwright-drag-and-drop

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Drag an item to a drop target and verify that the target receives the drop.

Your Task

  1. 1Navigate to the actions workspace at TEST_URL.
  2. 2Drag the sprint task (#draggable or #draggable-item) and drop it into the Done zone (#drop-zone or #drop-target).
  3. 3Assert that the Done drop zone (#drop-zone or #drop-target) contains the text 'Dropped!'.

Validation Checks

  • Actions workspace is loaded at TEST_URL
  • Draggable item (#draggable) is dragged to drop zone (#drop-zone)
  • Drop target receives item and displays 'Dropped!'
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Actions & inputs