Skip to content

Commit 47c1305

Browse files
committed
Add a short delay between backspace taps to ensure the correct number of taps occur
Repeated tests show that the emulator can be slightly inconsistent and occasionally add an extra tap
1 parent df9fc2f commit 47c1305

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maestro-android/src/androidTest/java/dev/mobile/maestro/MaestroDriverService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ class Service(
275275

276276
for (i in 1..charactersToErase) {
277277
uiDevice.pressDelete()
278+
Thread.sleep(50) // Attempt to ensure perfect count of taps on emulators
278279
}
279280

280281
responseObserver.onNext(eraseAllTextResponse { })

0 commit comments

Comments
 (0)