@@ -136,9 +136,13 @@ public void testSelectTransferMethod_verifyCountrySelectionList() {
136136 onView (allOf (instanceOf (TextView .class ), withParent (withId (R .id .country_selection_toolbar )))).check (
137137 matches (withText (R .string .select_transfer_method_country )));
138138 onView (withId (R .id .search_button )).check (doesNotExist ());
139- onView (withId (R .id .country_selection_list )).check (new RecyclerViewCountAssertion (2 ));
139+ onView (withId (R .id .country_selection_list )).check (new RecyclerViewCountAssertion (5 ));
140140 onView (allOf (withId (R .id .country_name ), withText ("Canada" ))).check (matches (isDisplayed ()));
141+ onView (allOf (withId (R .id .country_name ), withText ("Croatia" ))).check (matches (isDisplayed ()));
142+ onView (allOf (withId (R .id .country_name ), withText ("Mexico" ))).check (matches (isDisplayed ()));
143+ onView (allOf (withId (R .id .country_name ), withText ("United Kingdom" ))).check (matches (isDisplayed ()));
141144 onView (allOf (withId (R .id .country_name ), withText ("United States" ))).check (matches (isDisplayed ()));
145+
142146 onView (allOf (withId (R .id .country_item_selected_image ),
143147 hasSibling (allOf (withId (R .id .country_name ), withText ("United States" ))))).check (matches (isDisplayed ()));
144148
@@ -185,11 +189,12 @@ public void testSelectTransferMethod_verifyCurrencySelectionList() {
185189 matches (withText (R .string .select_transfer_method_currency )));
186190 onView (withId (R .id .search_button )).check (doesNotExist ());
187191 onView (withId (R .id .currency_selection_list )).check (new RecyclerViewCountAssertion (1 ));
188- onView (allOf (withId (R .id .currency_name ), withText ("US Dollar" ))).check (matches (isDisplayed ()));
192+ onView (allOf (withId (R .id .currency_name ), withText ("United States Dollar" ))).check (matches (isDisplayed ()));
189193 onView (allOf (withId (R .id .currency_item_selected_image ),
190- hasSibling (allOf (withId (R .id .currency_name ), withText ("US Dollar" ))))).check (matches (isDisplayed ()));
194+ hasSibling (allOf (withId (R .id .currency_name ), withText ("United States Dollar" ))))).check (
195+ matches (isDisplayed ()));
191196
192- onView (allOf (withId (R .id .currency_name ), withText ("US Dollar" ))).perform (click ());
197+ onView (allOf (withId (R .id .currency_name ), withText ("United States Dollar" ))).perform (click ());
193198 onView (withId (R .id .select_transfer_method_currency_value )).check (matches (withText ("USD" )));
194199 }
195200
@@ -204,7 +209,7 @@ public void testSelectTransferMethod_verifyTransferMethodsList() {
204209
205210 onView (withId (R .id .select_transfer_method_country_value )).check (matches (withText ("United States" )));
206211 onView (withId (R .id .select_transfer_method_currency_value )).check (matches (withText ("USD" )));
207- onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (2 ));
212+ onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (4 ));
208213
209214 onView (withId (R .id .select_transfer_method_types_list )).check (
210215 matches (atPosition (0 , hasDescendant (withText (R .string .bank_account_font_icon )))));
@@ -222,6 +227,24 @@ public void testSelectTransferMethod_verifyTransferMethodsList() {
222227 onView (withId (R .id .select_transfer_method_types_list )).check (
223228 matches (atPosition (1 , hasDescendant (withText ("Transaction Fee: USD 1.75" )))));
224229
230+ onView (withId (R .id .select_transfer_method_types_list )).check (
231+ matches (atPosition (2 , hasDescendant (withText (R .string .wire_account_font_icon )))));
232+ onView (withId (R .id .select_transfer_method_types_list )).check (
233+ matches (atPosition (2 , hasDescendant (withText (R .string .wire_account )))));
234+ onView (withId (R .id .select_transfer_method_types_list )).check (
235+ matches (atPosition (2 , hasDescendant (withText ("Transaction Fee: USD 20.00" )))));
236+ onView (withId (R .id .select_transfer_method_types_list )).check (
237+ matches (atPosition (2 , hasDescendant (withText ("Processing Time: 1-3 Business days" )))));
238+
239+ onView (withId (R .id .select_transfer_method_types_list )).check (
240+ matches (atPosition (3 , hasDescendant (withText (R .string .paypal_account_font_icon )))));
241+ onView (withId (R .id .select_transfer_method_types_list )).check (
242+ matches (atPosition (3 , hasDescendant (withText (R .string .paypal_account )))));
243+ onView (withId (R .id .select_transfer_method_types_list )).check (
244+ matches (atPosition (3 , hasDescendant (withText ("Transaction Fee: USD 0.25" )))));
245+ onView (withId (R .id .select_transfer_method_types_list )).check (
246+ matches (atPosition (3 , hasDescendant (withText ("Processing Time: IMMEDIATE" )))));
247+
225248 }
226249
227250 @ Test
@@ -283,20 +306,29 @@ public void testSelectTransferMethod_verifyTransferMethodsListUpdatedOnSelection
283306
284307 onView (withId (R .id .select_transfer_method_country_value )).check (matches (withText ("United States" )));
285308 onView (withId (R .id .select_transfer_method_currency_value )).check (matches (withText ("USD" )));
286- onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (2 ));
309+ onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (4 ));
287310
288311 onView (withId (R .id .select_transfer_method_country_value )).perform (click ());
289312 onView (allOf (withId (R .id .country_name ), withText ("Canada" ))).perform (click ());
290313
291- onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (1 ));
314+ onView (withId (R .id .select_transfer_method_types_list )).check (new RecyclerViewCountAssertion (2 ));
292315 onView (withId (R .id .select_transfer_method_types_list )).check (
293316 matches (atPosition (0 , hasDescendant (withText (R .string .bank_account_font_icon )))));
294317 onView (withId (R .id .select_transfer_method_types_list )).check (
295318 matches (atPosition (0 , hasDescendant (withText (R .string .bank_account )))));
296319 onView (withId (R .id .select_transfer_method_types_list )).check (
297- matches (atPosition (0 , hasDescendant (withText ("Transaction Fee: USD 2.00" )))));
320+ matches (atPosition (0 , hasDescendant (withText ("Transaction Fee: CAD 2.20" )))));
321+ onView (withId (R .id .select_transfer_method_types_list )).check (
322+ matches (atPosition (0 , hasDescendant (withText ("Processing Time: 1-2 Business days" )))));
323+
324+ onView (withId (R .id .select_transfer_method_types_list )).check (
325+ matches (atPosition (1 , hasDescendant (withText (R .string .paypal_account_font_icon )))));
326+ onView (withId (R .id .select_transfer_method_types_list )).check (
327+ matches (atPosition (1 , hasDescendant (withText (R .string .paypal_account )))));
328+ onView (withId (R .id .select_transfer_method_types_list )).check (
329+ matches (atPosition (1 , hasDescendant (withText ("Transaction Fee: CAD 0.25" )))));
298330 onView (withId (R .id .select_transfer_method_types_list )).check (
299- matches (atPosition (0 , hasDescendant (withText ("Processing Time: 1-3 Business days " )))));
331+ matches (atPosition (1 , hasDescendant (withText ("Processing Time: IMMEDIATE " )))));
300332
301333 }
302334
@@ -307,7 +339,7 @@ public void testSelectTransferMethod_verifyIntentIndividualUser() {
307339 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
308340 .getResourceContent ("successful_tmc_keys_response.json" )).mock ();
309341 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
310- .getResourceContent ("successful_tmc_fields_response .json" )).mock ();
342+ .getResourceContent ("successful_tmc_fields_bank_account_response .json" )).mock ();
311343
312344 mIntentsTestRule .launchActivity (null );
313345
@@ -326,7 +358,7 @@ public void testSelectTransferMethod_verifyIntentBusinessUser() {
326358 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
327359 .getResourceContent ("successful_tmc_keys_response.json" )).mock ();
328360 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
329- .getResourceContent ("successful_tmc_fields_response .json" )).mock ();
361+ .getResourceContent ("successful_tmc_fields_bank_account_response .json" )).mock ();
330362
331363 mIntentsTestRule .launchActivity (null );
332364
@@ -345,7 +377,7 @@ public void testSelectTransferMethod_clickBankAccountOpensAddTransferMethodUi()
345377 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
346378 .getResourceContent ("successful_tmc_keys_response.json" )).mock ();
347379 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
348- .getResourceContent ("successful_tmc_fields_response .json" )).mock ();
380+ .getResourceContent ("successful_tmc_fields_bank_account_response .json" )).mock ();
349381
350382 mActivityTestRule .launchActivity (null );
351383
@@ -362,7 +394,7 @@ public void testSelectTransferMethod_clickBankCardOpensAddTransferMethodUi() {
362394 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
363395 .getResourceContent ("successful_tmc_keys_response.json" )).mock ();
364396 mMockWebServer .mockResponse ().withHttpResponseCode (HTTP_OK ).withBody (sResourceManager
365- .getResourceContent ("successful_tmc_bank_card_fields_response .json" )).mock ();
397+ .getResourceContent ("successful_tmc_fields_bank_card_response .json" )).mock ();
366398
367399 mActivityTestRule .launchActivity (null );
368400
0 commit comments