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

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

Issue 2872033007: [Payments] Do not show error on initial load of address screen (Closed)
Patch Set: deps check 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 | « no previous file | components/payments/content/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc
index 9e73b878021fdb8f71218e8e0bd91ab55692c4a9..1dfe682f5a0898470152bd84fd33a0249d0288f5 100644
--- a/chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/shipping_option_view_controller_browsertest.cc
@@ -45,6 +45,10 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestShippingOptionViewControllerTest,
// Go to the shipping address screen and select the first address (MI state).
OpenShippingAddressSectionScreen();
+ // There is no error at the top of this screen, because no address has been
+ // selected yet.
+ EXPECT_EQ(nullptr, dialog_view()->GetViewByID(static_cast<int>(
+ DialogViewID::SHIPPING_ADDRESS_OPTION_ERROR)));
ResetEventObserverForSequence(std::list<DialogEvent>{
DialogEvent::BACK_NAVIGATION, DialogEvent::SPEC_DONE_UPDATING});
ClickOnChildInListViewAndWait(
« no previous file with comments | « no previous file | components/payments/content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698