diff --git a/identity/res/values/strings.xml b/identity/res/values/strings.xml index b4575e09f27..92a4cdef4d4 100644 --- a/identity/res/values/strings.xml +++ b/identity/res/values/strings.xml @@ -14,6 +14,8 @@ Back of driver license is selected Back of identity card + + Back of identity document Back of ID is selected @@ -106,6 +108,8 @@ Front of driver license is selected Front of identity card + + Front of identity document Front of ID is selected diff --git a/identity/src/main/java/com/stripe/android/identity/ui/DocumentScanScreen.kt b/identity/src/main/java/com/stripe/android/identity/ui/DocumentScanScreen.kt index 983d48571a1..d1ae04d7710 100644 --- a/identity/src/main/java/com/stripe/android/identity/ui/DocumentScanScreen.kt +++ b/identity/src/main/java/com/stripe/android/identity/ui/DocumentScanScreen.kt @@ -179,9 +179,9 @@ private fun DocumentCaptureScreen( } val title = if (targetScanType.isNullOrFront()) { - stringResource(id = R.string.stripe_front_of_id) + stringResource(id = R.string.stripe_front_of_id_document) } else { - stringResource(id = R.string.stripe_back_of_id) + stringResource(id = R.string.stripe_back_of_id_document) } Column( diff --git a/identity/src/main/java/com/stripe/android/identity/ui/UploadScreen.kt b/identity/src/main/java/com/stripe/android/identity/ui/UploadScreen.kt index dff529202ae..bde6e041aef 100644 --- a/identity/src/main/java/com/stripe/android/identity/ui/UploadScreen.kt +++ b/identity/src/main/java/com/stripe/android/identity/ui/UploadScreen.kt @@ -314,7 +314,7 @@ internal fun UploadImageDialog( end = 24.dp ), text = stringResource( - id = if (isFront) R.string.stripe_front_of_id else R.string.stripe_back_of_id + id = if (isFront) R.string.stripe_front_of_id_document else R.string.stripe_back_of_id_document ), style = MaterialTheme.typography.subtitle1, fontWeight = FontWeight.Bold @@ -389,7 +389,9 @@ private fun SingleSideUploadRow( horizontalArrangement = Arrangement.SpaceBetween ) { Text( - text = stringResource(id = if (isFront) R.string.stripe_front_of_id else R.string.stripe_back_of_id), + text = stringResource( + id = if (isFront) R.string.stripe_front_of_id_document else R.string.stripe_back_of_id_document + ), modifier = Modifier.align(CenterVertically) ) when (uploadUiState) { diff --git a/identity/src/test/java/com/stripe/android/identity/ui/DocumentScanScreenTest.kt b/identity/src/test/java/com/stripe/android/identity/ui/DocumentScanScreenTest.kt index cccee4b96e0..dd912e3d458 100644 --- a/identity/src/test/java/com/stripe/android/identity/ui/DocumentScanScreenTest.kt +++ b/identity/src/test/java/com/stripe/android/identity/ui/DocumentScanScreenTest.kt @@ -96,7 +96,7 @@ class DocumentScanScreenTest { testDocumentScanScreen( scannerState = IdentityScanViewModel.State.Scanning(), ) { - onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id)) + onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id_document)) onNodeWithTag(SCAN_MESSAGE_TAG).assertTextEquals(context.getString(R.string.stripe_position_id_front)) onNodeWithTag(CHECK_MARK_TAG).assertDoesNotExist() onNodeWithTag(CONTINUE_BUTTON_TAG).onChildAt(0).assertIsNotEnabled() @@ -114,7 +114,7 @@ class DocumentScanScreenTest { eq(IdentityScanState.ScanType.DOC_FRONT), any() ) - onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id)) + onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id_document)) onNodeWithTag(SCAN_MESSAGE_TAG).assertTextEquals(context.getString(R.string.stripe_hold_still)) onNodeWithTag(CHECK_MARK_TAG).assertDoesNotExist() onNodeWithTag(CONTINUE_BUTTON_TAG).onChildAt(0).assertIsNotEnabled() @@ -133,7 +133,7 @@ class DocumentScanScreenTest { eq(IdentityScanState.ScanType.DOC_BACK), any() ) - onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_back_of_id)) + onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_back_of_id_document)) onNodeWithTag(SCAN_MESSAGE_TAG).assertTextEquals(context.getString(R.string.stripe_hold_still)) onNodeWithTag(CHECK_MARK_TAG).assertDoesNotExist() onNodeWithTag(CONTINUE_BUTTON_TAG).onChildAt(0).assertIsNotEnabled() @@ -148,7 +148,7 @@ class DocumentScanScreenTest { messageId = R.string.stripe_scanned ) { verify(mockDocumentScanViewModel).stopScan(any()) - onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id)) + onNodeWithTag(SCAN_TITLE_TAG).assertTextEquals(context.getString(R.string.stripe_front_of_id_document)) onNodeWithTag(SCAN_MESSAGE_TAG).assertTextEquals(context.getString(R.string.stripe_scanned)) onNodeWithTag(CHECK_MARK_TAG).assertExists() onNodeWithTag(CONTINUE_BUTTON_TAG).onChildAt(0).assertIsEnabled()