Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java

Issue 2715783004: [Payments] Make phone number optional for billing addresses. (Closed)
Patch Set: Addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressWithoutPhoneTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
index c061c3520eb5a1657e3b0383e9ba36ecb9a48c01..9b42937e35da1527337deeadc753ff31c70cb89b 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
@@ -428,6 +428,28 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
}
/**
+ * Clicks on the edit icon corresponding to the payment method suggestion at the specified
+ * |suggestionIndex|.
+ */
+ protected void clickOnPaymentMethodSuggestionEditIconAndWait(
+ final int suggestionIndex, CallbackHelper helper)
+ throws ExecutionException, TimeoutException, InterruptedException {
+ assert (suggestionIndex < getNumberOfPaymentInstruments());
+
+ int callCount = helper.getCallCount();
+ ThreadUtils.runOnUiThreadBlocking(new Runnable() {
+ @Override
+ public void run() {
+ ((OptionSection) mUI.getPaymentMethodSectionForTest())
+ .getOptionRowAtIndex(suggestionIndex)
+ .getEditIconForTest()
+ .performClick();
+ }
+ });
+ helper.waitForCallback(callCount);
+ }
+
+ /**
* Returns the the number of shipping address suggestions.
*/
protected int getNumberOfShippingAddressSuggestions() throws ExecutionException {
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressWithoutPhoneTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698