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

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

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: BUILD 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
Index: chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
index ef726c82c733523bce1f566799bf6a354f3fed5d..cc11c0e7a1a775274f4a071c2be8b3af41962d8c 100644
--- a/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/error_message_view_controller_browsertest.cc
@@ -5,6 +5,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
#include "chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h"
#include "chrome/test/base/ui_test_utils.h"
@@ -34,8 +35,10 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestErrorMessageTest, CompleteFail) {
// Once "Pay" is clicked, the page will call complete('fail') and the error
// message should be shown.
+ OpenCVCPromptWithCVC(base::ASCIIToUTF16("123"));
+
ResetEventObserver(DialogEvent::ERROR_MESSAGE_SHOWN);
- ClickOnDialogViewAndWait(DialogViewID::PAY_BUTTON);
+ ClickOnDialogViewAndWait(DialogViewID::CVC_PROMPT_CONFIRM_BUTTON);
// The user can only close the dialog at this point.
ResetEventObserver(DialogEvent::DIALOG_CLOSED);

Powered by Google App Engine
This is Rietveld 408576698