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

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

Issue 2810193003: [Payments] Change how the dialog gets destroyed. (Closed)
Patch Set: added comment 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.cc » ('j') | 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 08bce0bfdf4c4e9a4c336cbc29368a8b255d886e..0b6f9b78c2914000325038b7a162f5b15c9396de 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
@@ -84,6 +84,19 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest, EnteringValidData) {
credit_card->GetRawInfo(autofill::CREDIT_CARD_NAME_FULL));
}
+IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest, CancelFromEditor) {
+ InvokePaymentRequestUI();
+
+ OpenPaymentMethodScreen();
+
+ OpenCreditCardEditorScreen();
+
+ ResetEventObserver(DialogEvent::DIALOG_CLOSED);
+
+ ClickOnDialogViewAndWait(DialogViewID::CANCEL_BUTTON,
+ /*wait_for_animation=*/false);
+}
+
IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest,
EnteringExpiredCard) {
autofill::TestAutofillClock test_clock;
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_request_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698