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

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

Issue 2888203004: Properly update the payment request credit card billing combob box when a new address is added. (Closed)
Patch Set: Rebase Created 3 years, 7 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/browser/ui/views/payments/credit_card_editor_view_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
index 4cf51bc1e93dece58cb253941b2f96d17ff51215..471ace6096f838d904fd4d9831abcd16ad039ad2 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
@@ -525,6 +525,12 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest,
ResetEventObserver(DialogEvent::BACK_NAVIGATION);
ClickOnDialogViewAndWait(DialogViewID::SAVE_ADDRESS_BUTTON);
+ // The billing address must be properly selected and valid.
+ views::Combobox* billing_combobox = static_cast<views::Combobox*>(
+ dialog_view()->GetViewByID(autofill::ADDRESS_BILLING_LINE1));
+ ASSERT_NE(nullptr, billing_combobox);
+ EXPECT_FALSE(billing_combobox->invalid());
+
// And then save credit card state and come back to payment sheet.
ResetEventObserver(DialogEvent::BACK_TO_PAYMENT_SHEET_NAVIGATION);
« no previous file with comments | « chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698