|
12 | 12 | import static androidx.test.espresso.matcher.ViewMatchers.withText; |
13 | 13 |
|
14 | 14 | import static org.hamcrest.Matchers.allOf; |
| 15 | +import static org.hamcrest.Matchers.containsString; |
15 | 16 | import static org.hamcrest.Matchers.instanceOf; |
16 | 17 |
|
17 | 18 | import static java.net.HttpURLConnection.HTTP_NO_CONTENT; |
@@ -309,13 +310,14 @@ public void testListPrepaidCardReceipt_checkDateTextOnLocaleChange() { |
309 | 310 | mActivityTestRule.launchActivity(null); |
310 | 311 | // assert |
311 | 312 | onView(withId(R.id.list_receipts)) |
312 | | - .check(matches(atPosition(0, hasDescendant(withText("Juni 2019"))))); |
| 313 | + .check(matches(atPosition(0, hasDescendant(withText(containsString("Juni 2019")))))); |
313 | 314 | onView(withId(R.id.list_receipts)).check(matches(atPosition(0, |
314 | 315 | hasDescendant(withText(com.hyperwallet.android.ui.receipt.R.string.debit))))); |
315 | 316 | onView(withId(R.id.list_receipts)).check( |
316 | 317 | matches(atPosition(0, hasDescendant(withText(R.string.adjustment))))); |
| 318 | + |
317 | 319 | onView(withId(R.id.list_receipts)).check( |
318 | | - matches(atPosition(0, hasDescendant(withText(debitSymbol + usdCurrencySymbol + "8.90"))))); |
| 320 | + matches(atPosition(0, hasDescendant(withText(containsString(debitSymbol + "8,90")))))); |
319 | 321 | onView(withId(R.id.list_receipts)).check( |
320 | 322 | matches(atPosition(0, hasDescendant(withText("1. Juni 2019"))))); |
321 | 323 | onView(withId(R.id.list_receipts)).check( |
|
0 commit comments