| 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
|
|
|