Skip to content

Commit d30f03d

Browse files
Added new slowSwipeUp Locator
PiperOrigin-RevId: 663617977
1 parent dd2b59a commit d30f03d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

espresso/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ The following artifacts were released:
2727
**Breaking API Changes**
2828

2929
**Known Issues**
30+
31+
**New Locator declared**

espresso/core/java/androidx/test/espresso/action/ViewActions.java

+9
Original file line numberDiff line numberDiff line change
@@ -586,4 +586,13 @@ public interface BitmapReceiver {
586586
public static ViewAction captureToBitmap(BitmapReceiver bitmapReceiver) {
587587
return new CaptureToBitmapAction(bitmapReceiver);
588588
}
589+
590+
public static ViewAction slowSwipeUp() {
591+
return actionWithAssertions(
592+
new GeneralSwipeAction(
593+
Swipe.SLOW,
594+
GeneralLocation.translate(GeneralLocation.BOTTOM_CENTER, 0, -EDGE_FUZZ_FACTOR),
595+
GeneralLocation.TOP_CENTER,
596+
Press.FINGER));
597+
}
589598
}

0 commit comments

Comments
 (0)