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

Unified Diff: chrome/browser/ui/views/payments/payment_request_payment_response_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
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc b/chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc
index 78070a9c18c81fc1aa07a31e5c9708757385d451..a7bd42d84b6d72a0c3624e6b8bc1545e69e314a4 100644
--- a/chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc
+++ b/chrome/browser/ui/views/payments/payment_request_payment_response_browsertest.cc
@@ -45,7 +45,7 @@ IN_PROC_BROWSER_TEST_F(
// Complete the Payment Request.
InvokePaymentRequestUI();
ResetEventObserver(DialogEvent::DIALOG_CLOSED);
- ClickOnDialogViewAndWait(DialogViewID::PAY_BUTTON);
+ PayWithCreditCardAndWait(base::ASCIIToUTF16("123"));
// Test that the card details were sent to the merchant.
ExpectBodyContains(std::vector<base::string16>{
@@ -100,7 +100,7 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestPaymentResponseShippingAddressTest,
// Complete the Payment Request.
InvokePaymentRequestUI();
ResetEventObserver(DialogEvent::DIALOG_CLOSED);
- ClickOnDialogViewAndWait(DialogViewID::PAY_BUTTON);
+ PayWithCreditCardAndWait(base::ASCIIToUTF16("123"));
// Test that the shipping address was sent to the merchant.
ExpectBodyContains(std::vector<base::string16>{
@@ -146,7 +146,7 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestPaymentResponseAllContactDetailsTest,
// Complete the Payment Request.
InvokePaymentRequestUI();
ResetEventObserver(DialogEvent::DIALOG_CLOSED);
- ClickOnDialogViewAndWait(DialogViewID::PAY_BUTTON);
+ PayWithCreditCardAndWait(base::ASCIIToUTF16("123"));
// Test that the contact details were sent to the merchant.
ExpectBodyContains(std::vector<base::string16>{
@@ -180,7 +180,7 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestPaymentResponseOneContactDetailTest,
// Complete the Payment Request.
InvokePaymentRequestUI();
ResetEventObserver(DialogEvent::DIALOG_CLOSED);
- ClickOnDialogViewAndWait(DialogViewID::PAY_BUTTON);
+ PayWithCreditCardAndWait(base::ASCIIToUTF16("123"));
// Test that the contact details were sent to the merchant.
ExpectBodyContains(std::vector<base::string16>{
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_dialog_view_ids.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698