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

Unified Diff: chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc

Issue 2808883002: [Payments] Fix bug in shipping option selection. (Closed)
Patch Set: Initial Created 3 years, 8 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 | « no previous file | chrome/browser/ui/views/payments/payment_request_browsertest_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc
index 0b36c536e908e6234f7a497b5512e14cada1c9bb..b33d48a6627c9ada7b2df2e906025b36d01675bf 100644
--- a/chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/order_summary_view_controller_browsertest.cc
@@ -51,7 +51,7 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestOrderSummaryViewControllerTest,
// Go to the shipping address screen and select the first address (MI state).
ClickOnBackArrow();
- OpenShippingSectionScreen();
+ OpenShippingAddressSectionScreen();
ResetEventObserverForSequence(std::list<DialogEvent>{
DialogEvent::BACK_NAVIGATION, DialogEvent::SPEC_DONE_UPDATING});
ClickOnChildInListViewAndWait(
@@ -59,8 +59,8 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestOrderSummaryViewControllerTest,
DialogViewID::SHIPPING_ADDRESS_SHEET_LIST_VIEW);
// Michigan address is selected and has standard shipping.
- std::vector<base::string16> shipping_address_labels =
- GetThreeLineLabelValues(DialogViewID::PAYMENT_SHEET_SHIPPING_SECTION);
+ std::vector<base::string16> shipping_address_labels = GetThreeLineLabelValues(
+ DialogViewID::PAYMENT_SHEET_SHIPPING_ADDRESS_SECTION);
EXPECT_EQ(base::ASCIIToUTF16("Jane A. Smith"), shipping_address_labels[0]);
EXPECT_EQ(
base::ASCIIToUTF16("ACME, 123 Main Street, Unit 1, Greensdale, MI 48838"),
@@ -87,7 +87,7 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestOrderSummaryViewControllerTest,
// Go to the shipping address screen and select the second address (CA state).
ClickOnBackArrow();
- OpenShippingSectionScreen();
+ OpenShippingAddressSectionScreen();
ResetEventObserverForSequence(std::list<DialogEvent>{
DialogEvent::BACK_NAVIGATION, DialogEvent::SPEC_DONE_UPDATING});
ClickOnChildInListViewAndWait(
@@ -95,8 +95,8 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestOrderSummaryViewControllerTest,
DialogViewID::SHIPPING_ADDRESS_SHEET_LIST_VIEW);
// California address is selected and has free shipping.
- shipping_address_labels =
- GetThreeLineLabelValues(DialogViewID::PAYMENT_SHEET_SHIPPING_SECTION);
+ shipping_address_labels = GetThreeLineLabelValues(
+ DialogViewID::PAYMENT_SHEET_SHIPPING_ADDRESS_SECTION);
EXPECT_EQ(base::ASCIIToUTF16("John H. Doe"), shipping_address_labels[0]);
EXPECT_EQ(base::ASCIIToUTF16(
"Underworld, 666 Erebus St., Apt 8, Elysium, CA 91111"),
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_browsertest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698