Skip to content

Commit

Permalink
Fixed flaky longPressAndDrag tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Apr 2, 2024
1 parent 922f412 commit fe77d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlin.math.ceil


private const val SLOW_SCROLL_MOTIONS = 50
private const val FAST_SCROLL_MOTIONS = 15
private const val FAST_SCROLL_MOTIONS = 20

class LongPressAndDragAction(
private val duration: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.wix.detox.espresso.action.common.MotionEvents
* The delay between each motion event.
* Reducing this value may fail the swipe on different devices. Please change with caution.
*/
private const val EVENT_DELAY = 20L
private const val EVENT_DELAY = 25L

/**
* Implementation of @see DetoxSwiper that swipes in a linear fashion uses const delay between events.
Expand Down

0 comments on commit fe77d54

Please sign in to comment.