diff --git a/VAMobile/src/components/AccordionCollapsible.tsx b/VAMobile/src/components/AccordionCollapsible.tsx index 8b77b218ace..c473581fe58 100644 --- a/VAMobile/src/components/AccordionCollapsible.tsx +++ b/VAMobile/src/components/AccordionCollapsible.tsx @@ -4,7 +4,6 @@ import { Pressable, PressableProps, View } from 'react-native' import { Events } from 'constants/analytics' import { NAMESPACE } from 'constants/namespaces' -import { testIdProps } from 'utils/accessibility' import { logAnalyticsEvent } from 'utils/analytics' import { useTheme } from 'utils/hooks' @@ -113,7 +112,7 @@ const AccordionCollapsible: FC = ({ } return ( - + ) diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/ClaimsAndAppealsListView.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/ClaimsAndAppealsListView.tsx index 9af14205994..13e1815734d 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/ClaimsAndAppealsListView.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/ClaimsAndAppealsListView.tsx @@ -18,7 +18,7 @@ import { } from 'components' import { ClaimType, ClaimTypeConstants } from 'constants/claims' import { NAMESPACE } from 'constants/namespaces' -import { getTestIDFromTextLines, testIdProps } from 'utils/accessibility' +import { getTestIDFromTextLines } from 'utils/accessibility' import { getUserPhase, isDisabilityCompensationClaim } from 'utils/claims' import { capitalizeWord, formatDateMMMMDDYYYY } from 'utils/formattingUtils' import { useRouteNavigation, useTheme } from 'utils/hooks' @@ -153,7 +153,7 @@ function ClaimsAndAppealsListView({ claimType, scrollViewRef }: ClaimsAndAppeals } return ( - + diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/DEPRECATED_ClaimsAndAppealsListView.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/DEPRECATED_ClaimsAndAppealsListView.tsx index b36c19e4ffd..9bf797b3db2 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/DEPRECATED_ClaimsAndAppealsListView.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/ClaimsAndAppealsListView/DEPRECATED_ClaimsAndAppealsListView.tsx @@ -18,7 +18,7 @@ import { } from 'components' import { ClaimType } from 'constants/claims' import { NAMESPACE } from 'constants/namespaces' -import { getTestIDFromTextLines, testIdProps } from 'utils/accessibility' +import { getTestIDFromTextLines } from 'utils/accessibility' import { capitalizeWord, formatDateMMMMDDYYYY } from 'utils/formattingUtils' import { useRouteNavigation, useTheme } from 'utils/hooks' import { featureEnabled } from 'utils/remoteConfig' @@ -146,7 +146,7 @@ function DEPRECATED_ClaimsAndAppealsListView({ claimType, scrollViewRef }: Claim } return ( - + diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NeedHelpData/NeedHelpData.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NeedHelpData/NeedHelpData.tsx index 75a53c538dd..29730986702 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NeedHelpData/NeedHelpData.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NeedHelpData/NeedHelpData.tsx @@ -46,7 +46,11 @@ function NeedHelpData({ isAppeal }: NeedHelpDataProps) { {t('claimDetails.needHelp')} - + {t('claimDetails.callVA')} diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppeals/NoClaimsAndAppeals.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppeals/NoClaimsAndAppeals.tsx index b27a71d6d32..36499cc0788 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppeals/NoClaimsAndAppeals.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppeals/NoClaimsAndAppeals.tsx @@ -6,7 +6,6 @@ import { ClaimsAndAppealsErrorServiceTypesConstants } from 'api/types' import { Box, TextView } from 'components' import { ClaimType, ClaimTypeConstants } from 'constants/claims' import { NAMESPACE } from 'constants/namespaces' -import { testIdProps } from 'utils/accessibility' import { useTheme } from 'utils/hooks' type NoClaimsAndAppealsProps = { @@ -45,22 +44,13 @@ function NoClaimsAndAppeals({ claimType }: NoClaimsAndAppealsProps) { } return ( - - - - {header} - - - - - {text} - - + + + {header} + + + {text} + ) } diff --git a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppealsAccess/NoClaimsAndAppealsAccess.tsx b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppealsAccess/NoClaimsAndAppealsAccess.tsx index a075f1bbff2..1ffb075f898 100644 --- a/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppealsAccess/NoClaimsAndAppealsAccess.tsx +++ b/VAMobile/src/screens/BenefitsScreen/ClaimsScreen/NoClaimsAndAppealsAccess/NoClaimsAndAppealsAccess.tsx @@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next' import { Box, ClickToCallPhoneNumber, TextArea, TextView, VAScrollView } from 'components' import { NAMESPACE } from 'constants/namespaces' import { a11yLabelVA } from 'utils/a11yLabel' -import { testIdProps } from 'utils/accessibility' import { displayedTextPhoneNumber } from 'utils/formattingUtils' import { useTheme } from 'utils/hooks' @@ -13,7 +12,7 @@ function NoClaimsAndAppealsAccess() { const { t } = useTranslation(NAMESPACE.COMMON) return ( - + {t('claimsAndAppeals.noClaimsAndAppealsAccess.title')} diff --git a/VAMobile/src/screens/BenefitsScreen/DisabilityRatingsScreen/NoDisabilityRatings/NoDisabilityRatings.tsx b/VAMobile/src/screens/BenefitsScreen/DisabilityRatingsScreen/NoDisabilityRatings/NoDisabilityRatings.tsx index da012393c6d..e8fc0bf4a5d 100644 --- a/VAMobile/src/screens/BenefitsScreen/DisabilityRatingsScreen/NoDisabilityRatings/NoDisabilityRatings.tsx +++ b/VAMobile/src/screens/BenefitsScreen/DisabilityRatingsScreen/NoDisabilityRatings/NoDisabilityRatings.tsx @@ -5,7 +5,6 @@ import { StyleProp, ViewStyle } from 'react-native' import { Box, TextView, VAScrollView } from 'components' import { NAMESPACE } from 'constants/namespaces' import { a11yLabelVA } from 'utils/a11yLabel' -import { testIdProps } from 'utils/accessibility' import { useTheme } from 'utils/hooks' function NoDisabilityRatings() { @@ -27,11 +26,7 @@ function NoDisabilityRatings() { accessibilityLabel={a11yLabelVA(t('disabilityRating.noDisabilityRatings.title'))}> {t('disabilityRating.noDisabilityRatings.title')} - + {bodyText} diff --git a/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.test.tsx b/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.test.tsx index a8884d82340..b8439239c94 100644 --- a/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.test.tsx +++ b/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.test.tsx @@ -26,7 +26,6 @@ context('GenericLetter', () => { it('initializes correctly', () => { expect(screen.getByText('Review letters')).toBeTruthy() - expect(screen.getByTestId('Letters: header-page')).toBeTruthy() expect(screen.getByRole('button', { name: 'Review letter' })).toBeTruthy() }) diff --git a/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.tsx b/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.tsx index a71a41a1fc5..a1086a52169 100644 --- a/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.tsx +++ b/VAMobile/src/screens/BenefitsScreen/Letters/GenericLetter/GenericLetter.tsx @@ -18,8 +18,6 @@ import { } from 'components' import { NAMESPACE } from 'constants/namespaces' import { BenefitsStackParamList } from 'screens/BenefitsScreen/BenefitsStackScreens' -import { testIdProps } from 'utils/accessibility' -import { generateTestID } from 'utils/common' import { useTheme } from 'utils/hooks' type GenericLetterProps = StackScreenProps @@ -67,7 +65,7 @@ function GenericLetter({ navigation, route }: GenericLetterProps) { {header} @@ -86,8 +84,7 @@ function GenericLetter({ navigation, route }: GenericLetterProps) { + title={t('letters.details.title')}> {downloading ? ( ) : letterDownloadError ? ( diff --git a/VAMobile/src/screens/BenefitsScreen/Letters/LettersListScreen.tsx b/VAMobile/src/screens/BenefitsScreen/Letters/LettersListScreen.tsx index ce64711cffd..58ea6f73026 100644 --- a/VAMobile/src/screens/BenefitsScreen/Letters/LettersListScreen.tsx +++ b/VAMobile/src/screens/BenefitsScreen/Letters/LettersListScreen.tsx @@ -21,7 +21,6 @@ import { NAMESPACE } from 'constants/namespaces' import { BenefitsStackParamList } from 'screens/BenefitsScreen/BenefitsStackScreens' import { DowntimeFeatureTypeConstants, ScreenIDTypesConstants } from 'store/api/types' import { a11yLabelVA } from 'utils/a11yLabel' -import { testIdProps } from 'utils/accessibility' import { logAnalyticsEvent } from 'utils/analytics' import { useDowntime, useRouteNavigation, useTheme } from 'utils/hooks' import { screenContentAllowed } from 'utils/waygateConfig' @@ -132,8 +131,7 @@ function LettersListScreen({ navigation }: LettersListScreenProps) { + title={t('letters.overview.viewLetters')}> {!lettersNotInDowntime ? ( ) : loading || loadingUserAuthorizedServices ? ( diff --git a/VAMobile/src/screens/BenefitsScreen/Letters/LettersOverviewScreen.tsx b/VAMobile/src/screens/BenefitsScreen/Letters/LettersOverviewScreen.tsx index 40077dd24ee..d1b35f47684 100644 --- a/VAMobile/src/screens/BenefitsScreen/Letters/LettersOverviewScreen.tsx +++ b/VAMobile/src/screens/BenefitsScreen/Letters/LettersOverviewScreen.tsx @@ -14,7 +14,6 @@ import AddressSummary, { addressDataField, profileAddressOptions, } from 'screens/HomeScreen/ProfileScreen/ContactInformationScreen/AddressSummary' -import { testIdProps } from 'utils/accessibility' import { logAnalyticsEvent } from 'utils/analytics' import { useRouteNavigation, useTheme } from 'utils/hooks' @@ -41,7 +40,6 @@ function LettersOverviewScreen({ navigation }: LettersOverviewProps) { backLabel={t('benefits.title')} backLabelOnPress={navigation.goBack} title={t('letters.overview.title')} - {...testIdProps('Letters-page')} testID="lettersPageID"> {!userAuthorizedServices?.lettersAndDocuments ? ( diff --git a/VAMobile/src/screens/BenefitsScreen/Letters/NoLettersScreen/NoLettersScreen.tsx b/VAMobile/src/screens/BenefitsScreen/Letters/NoLettersScreen/NoLettersScreen.tsx index e77b1534ad7..7e5bfbdfdbe 100644 --- a/VAMobile/src/screens/BenefitsScreen/Letters/NoLettersScreen/NoLettersScreen.tsx +++ b/VAMobile/src/screens/BenefitsScreen/Letters/NoLettersScreen/NoLettersScreen.tsx @@ -5,7 +5,6 @@ import { ViewStyle } from 'react-native' import { Box, ClickToCallPhoneNumber, TextView, VAScrollView } from 'components' import { NAMESPACE } from 'constants/namespaces' import { a11yLabelVA } from 'utils/a11yLabel' -import { testIdProps } from 'utils/accessibility' import { displayedTextPhoneNumber } from 'utils/formattingUtils' import { useTheme } from 'utils/hooks' @@ -19,7 +18,7 @@ function NoLettersScreen() { } return ( - + + + accessibilityLabel={t('biometricsPreference.doYouWantToAllow.a11yLabel', { biometricsA11yLabel })}> {t('biometricsPreference.doYouWantToAllow', { biometricsText })} diff --git a/VAMobile/src/screens/HealthScreen/Appointments/NoAppointments/NoAppointments.tsx b/VAMobile/src/screens/HealthScreen/Appointments/NoAppointments/NoAppointments.tsx index b8360c93095..26506a5c738 100644 --- a/VAMobile/src/screens/HealthScreen/Appointments/NoAppointments/NoAppointments.tsx +++ b/VAMobile/src/screens/HealthScreen/Appointments/NoAppointments/NoAppointments.tsx @@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next' import { Box, LinkWithAnalytics, TextView } from 'components' import { NAMESPACE } from 'constants/namespaces' import { a11yLabelVA } from 'utils/a11yLabel' -import { testIdProps } from 'utils/accessibility' import getEnv from 'utils/env' import { useTheme } from 'utils/hooks' @@ -25,19 +24,19 @@ export function NoAppointments({ subText, subTextA11yLabel, showVAGovLink = true flex={1} justifyContent="center" mx={theme.dimensions.gutter} - {...testIdProps('Appointments: No-appointments-page')} alignItems="center" mt={theme.dimensions.textAndButtonLargeMargin}> - - - {t('noAppointments.youDontHave')} - - - - - {subText} - - + + {t('noAppointments.youDontHave')} + + + {subText} + {showVAGovLink && ( + + {getSystemFolders(foldersData?.data || [], theme, t, onFolderPress)} {getUserFolders(foldersData?.data || [], theme, t, onFolderPress)} diff --git a/VAMobile/src/screens/HealthScreen/SecureMessaging/NoInboxMessages/NoInboxMessages.tsx b/VAMobile/src/screens/HealthScreen/SecureMessaging/NoInboxMessages/NoInboxMessages.tsx index 2dd3d587b68..e5f72d10f5e 100644 --- a/VAMobile/src/screens/HealthScreen/SecureMessaging/NoInboxMessages/NoInboxMessages.tsx +++ b/VAMobile/src/screens/HealthScreen/SecureMessaging/NoInboxMessages/NoInboxMessages.tsx @@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next' import { Box, TextView } from 'components' import { NAMESPACE } from 'constants/namespaces' -import { testIdProps } from 'utils/accessibility' import { useTheme } from 'utils/hooks' function NoInboxMessages() { @@ -12,7 +11,6 @@ function NoInboxMessages() { return ( - - {t('notEnrolledSM.title')} - + {t('notEnrolledSM.title')} +