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

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

Issue 2676663002: [Payments] Implements the credit card editor for Desktop UI (Closed)
Patch Set: formatting Created 3 years, 10 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
Index: chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc b/chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0edfcf45804712bc73fd8841c07cfd086f3f3f40
--- /dev/null
+++ b/chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc
@@ -0,0 +1,39 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/macros.h"
+#include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
+#include "chrome/browser/ui/views/payments/payment_request_interactive_uitest_base.h"
+
+namespace payments {
+
+class PaymentRequestCreditCardEditorTest
+ : public PaymentRequestInteractiveTestBase {
+ protected:
+ PaymentRequestCreditCardEditorTest()
+ : PaymentRequestInteractiveTestBase(
+ "/payment_request_no_shipping_test.html") {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PaymentRequestCreditCardEditorTest);
+};
+
+IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest,
+ OpenCreditCardEditor) {
+ InvokePaymentRequestUI();
+
+ OpenPaymentMethodScreen();
+
+ OpenCreditCardEditorScreen();
+
+ // TODO(mathp): Test input and validation.
+
+ ResetEventObserver(DialogEvent::BACK_NAVIGATION);
+
+ ClickOnDialogViewAndWait(DialogViewID::EDITOR_SAVE_BUTTON);
+
+ WaitForObservedEvent();
+}
+
+} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698