Chromium Code Reviews| 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..bec09f9733be6362a91ce24154ef9bcbce0c236b |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/payments/payment_request_credit_card_editor_interactive_uitest.cc |
| @@ -0,0 +1,35 @@ |
| +// 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 "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") {} |
| +}; |
|
sky
2017/02/06 17:05:11
private: DISALLOW...
Mathieu
2017/02/06 17:46:24
Done.
|
| + |
| +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 |