android / android/android-test
Espresso: [FR] - Implement Drag and Drop API
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 342
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 2
Description
It would be nice if we have any framework methods to do drag and drop in espresso. As of now, we only have swipe gesture in espresso. If I try actions with longclick() and swipe() to drag a view, getting the following exception.
"android.support.test.espresso.InjectEventSecurityException: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission"
Contributor guide
Research direction
Start by reviewing Espresso's existing swipe gesture API and the reported InjectEventSecurityException. Done means defining and implementing a framework-level drag-and-drop API that addresses the limitation described in the issue, with coverage for the relevant gesture behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100