From 3b544454daa9076558fd43bbd0da59244f7af71c Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Thu, 21 Nov 2024 12:49:01 +0100 Subject: [PATCH] fix: speed up clear command --- tests/e2e/nativeCommands/adbClear.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/nativeCommands/adbClear.ts b/tests/e2e/nativeCommands/adbClear.ts index 3fd9b5c70b94..5e25739b73a7 100644 --- a/tests/e2e/nativeCommands/adbClear.ts +++ b/tests/e2e/nativeCommands/adbClear.ts @@ -6,7 +6,8 @@ const adbClear = (): Promise => { return execAsync(` function clear_input() { adb shell input keyevent KEYCODE_MOVE_END - adb shell input keyevent --longpress $(printf 'KEYCODE_DEL %.0s' {1..250}) + # delete up to 2 characters per 1 press, so 1..3 will delete up to 6 characters + adb shell input keyevent --longpress $(printf 'KEYCODE_DEL %.0s' {1..3}) } clear_input