Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify testing of drag-drop interaction for components #478

Closed
wants to merge 1 commit into from
Closed

clarify testing of drag-drop interaction for components #478

wants to merge 1 commit into from

Conversation

prakhar1989
Copy link

Hi @gaearon, thanks a ton for this epic library, and the fantastic docs. I found that there's a scope for adding some clarification in the testing for drag-drop interaction section. I ran into the issue and spent a few hours debugging it - only to find a super helpful comment by @yannisbarlas in #236 (comment).

I believe if it'll be useful to others, but feel free to disregard it if you don't agree 馃憤

Thanks again for your work!

@@ -130,6 +130,10 @@ it('can be tested with the testing backend', function () {
// Find the drag source ID and use it to simulate the dragging operation
var box = TestUtils.findRenderedComponentWithType(root, Box);
backend.simulateBeginDrag([box.getHandlerId()]);

// Incase your component is acting both as a DragSource and DragTarget
Copy link
Contributor

@zargold zargold Oct 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incase = In case*

@stale
Copy link

stale bot commented Jul 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 6, 2019
@stale stale bot closed this Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants