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

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

Issue 2515853002: [Payments] Fix new billing address label. (Closed)
Patch Set: Updated test and code added in the Rebase Created 4 years, 1 month 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
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressTest.java
index 7b5fedb1f9555676f013bbd7a30253b2043bd95a..7fbdcd87d26f3d46814eab72aa4acda46916ccad 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestBillingAddressTest.java
@@ -165,10 +165,9 @@ public class PaymentRequestBillingAddressTest extends PaymentRequestTestBase {
// option to add a new address.
assertEquals(5, getSpinnerItemCountInCardEditor(BILLING_ADDRESS_DROPDOWN_INDEX));
- // TODO(crbug.com/666048): New billing address label is wrong.
// The fist suggestion should be the newly added address.
assertTrue(getSpinnerTextAtPositionInCardEditor(BILLING_ADDRESS_DROPDOWN_INDEX,
- 0).equals("Google, 340 Main St, Los Angeles, CA 90291, United States"));
+ 0).equals("Seb Doe, 340 Main St, Los Angeles, CA 90291"));
// The rest of the billing address suggestions should be ordered by frecency.
assertTrue(getSpinnerTextAtPositionInCardEditor(BILLING_ADDRESS_DROPDOWN_INDEX,
@@ -206,9 +205,8 @@ public class PaymentRequestBillingAddressTest extends PaymentRequestTestBase {
// option to add a new address.
assertEquals(5, getSpinnerItemCountInCardEditor(BILLING_ADDRESS_DROPDOWN_INDEX));
- // TODO(crbug.com/666048): New billing address label is wrong.
// The new address should be suggested first.
assertTrue(getSpinnerTextAtPositionInCardEditor(BILLING_ADDRESS_DROPDOWN_INDEX,
- 0).equals("Google, 340 Main St, Los Angeles, CA 90291, United States"));
+ 0).equals("Seb Doe, 340 Main St, Los Angeles, CA 90291"));
}
}

Powered by Google App Engine
This is Rietveld 408576698