From 9de4e2e95fa6e2abac26d8332a1c41d07f435b2f Mon Sep 17 00:00:00 2001 From: lauralu Date: Thu, 11 Oct 2018 16:12:17 +0800 Subject: add interface swipeEmail(Direction direction) and setEmailBody(String body, boolean useKeyboard) Bug: 116809422 Test: in follow-up CL containing CUJs. Change-Id: Ia62a40466f6c8758fe513ffba31b83ffc0aaaaa2 --- .../src/android/platform/helpers/IGmailHelper.java | 29 ++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IGmailHelper.java b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IGmailHelper.java index 0a2a2fb92..4c01fa8c8 100644 --- a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IGmailHelper.java +++ b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IGmailHelper.java @@ -97,11 +97,25 @@ public interface IGmailHelper extends IAppHelper { /** * Setup expectations: Gmail is open and composing an e-mail. * - * This method will set the e-mail's Body and block until complete. Focus will remain on the - * e-mail body after completion. + * This method will set the e-mail's Body (doesn't use keyboard) and block until complete. Focus + * will remain on the e-mail body after completion. + * + * * @param body The messages to input in the e-mail body. */ public void setEmailBody(String body); + /** + * Setup expectations: Gmail is open and composing an e-mail. + * + * This method inputs the e-mail body. + * + * @param body The messages to input in the e-mail body. + * @param useKeyboard Types out the e-mail body by keyboard or not. + */ + default public void setEmailBody(String body, boolean useKeyboard) { + throw new UnsupportedOperationException("Not yet implemented."); + } + /** * Setup expectations: Gmail is open and composing an e-mail. * @@ -207,4 +221,15 @@ public interface IGmailHelper extends IAppHelper { * @param target the target of the link to click */ public void openEmailLink(String target); + + /** + * Setup expectations: Gmail is open and an email is open. + * + * This method swipes the current email. + * + * @param direction The direction to swipe, only accepts LEFT and RIGHT. + */ + default public void swipeEmail(Direction direction) { + throw new UnsupportedOperationException("Not yet implemented."); + } } -- cgit v1.2.3