From 87ed1f29b5d42a1553534f47cfea4cfeb3a00142 Mon Sep 17 00:00:00 2001 From: Leland Takamine Date: Mon, 9 Sep 2024 12:56:32 -0700 Subject: [PATCH] Increase Android command timeout to allow for long text input (#2035) --- e2e/workspaces/demo_app/long_input_text.yaml | 10 ++++++++++ .../src/main/java/maestro/drivers/AndroidDriver.kt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 e2e/workspaces/demo_app/long_input_text.yaml diff --git a/e2e/workspaces/demo_app/long_input_text.yaml b/e2e/workspaces/demo_app/long_input_text.yaml new file mode 100644 index 0000000000..853af71db3 --- /dev/null +++ b/e2e/workspaces/demo_app/long_input_text.yaml @@ -0,0 +1,10 @@ +appId: com.example.example +tags: + - android + - passing +--- +- launchApp: + clearState: true +- tapOn: Form Test +- tapOn: Email +- inputText: veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongemail@mobile.dev diff --git a/maestro-client/src/main/java/maestro/drivers/AndroidDriver.kt b/maestro-client/src/main/java/maestro/drivers/AndroidDriver.kt index d8f0c73239..e66a7a87b8 100644 --- a/maestro-client/src/main/java/maestro/drivers/AndroidDriver.kt +++ b/maestro-client/src/main/java/maestro/drivers/AndroidDriver.kt @@ -69,7 +69,7 @@ class AndroidDriver( .usePlaintext() .build() private val blockingStub = MaestroDriverGrpc.newBlockingStub(channel) - private val blockingStubWithTimeout get() = blockingStub.withDeadlineAfter(40, TimeUnit.SECONDS) + private val blockingStubWithTimeout get() = blockingStub.withDeadlineAfter(120, TimeUnit.SECONDS) private val asyncStub = MaestroDriverGrpc.newStub(channel) private val documentBuilderFactory = DocumentBuilderFactory.newInstance()