Wait for log-in completion when installing the suite
Issue: INFRA-242
Change-Id: Ie8716a2f9ecb2104d49b3be0a29e2f38c7871c6b
diff --git a/deploy.py b/deploy.py
index cd53258..e8049b9 100755
--- a/deploy.py
+++ b/deploy.py
@@ -529,6 +529,12 @@
text=signin_label, className="android.widget.Button"
).click()
+ # Wait for log-in to complete
+ progress_bar = device.ui(resourceId="android:id/content").child(
+ className="android.widget.ProgressBar"
+ )
+ progress_bar.wait.gone(timeout=10000)
+
def configure_suite(self, device: DeviceUnderTest) -> None:
"""Configure the suite on a device.