Comments (2)
Your best bet if you want to test real user-like drag and drop interactions would be Cypress yes. With Jest your tests should focus on the api surface exposed by <DndContext>
and how your app re-renders as a result.
from dnd-kit.
@clauderic How would you proceed with triggering handlers on DnDContext
?. Firing RTL
events does not trigger anything. It basically closes the way to unit test any behavior until extracting the logic outside of components.
from dnd-kit.
Related Issues (20)
- `DragOverlay` works but is invisible HOT 1
- Draggable Touch Events only working on Long Press
- `items` prop of SortableContext should be ReadonlyArray
- PointerSensor activationConstraint logs error on valid usage
- `createSnapModifier` should use `Math.round` instead of `Math.ceil`
- Clicking one draggable selects them all HOT 1
- Multiple `useSortable` within an `DndContext` HOT 1
- Remove sortable item using keyboard shortcut?
- Cross-column dragging with asynchronous network requests can cause update status blocking, affecting the creation of the drag source.
- sortable transform is null in nested arrays.
- Weird Transform Behavior on the Sortable Items When Parent/Ancestor Divs have Animations with Transform HOT 3
- How to copy over items from one SortableContext to another?
- Drag down invalid HOT 1
- AutoScroll absolute thresholds and acceleration
- Drag Handle stops working when its visibility is toggled (hidden then shown) HOT 2
- Multiple containers : possibility of hitting minified error due to too many re-renders
- How do I get access to the Draggable data once it is over a Droppable? HOT 1
- Automatically generate id for components
- Sorting doesn't stay at it's position or moves somewhere else HOT 1
- Cannot auto-scroll back to first vertical list when used in a horizontally scrollable parent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnd-kit.