Skip to content

Commit

Permalink
dev screen
Browse files Browse the repository at this point in the history
  • Loading branch information
TKDickson committed Nov 15, 2024
1 parent 03cf782 commit 7200db8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions VAMobile/e2e/tests/SettingsScreen.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ describe('Settings Screen', () => {
await expect(element(by.id(SettingsE2eIdConstants.NOTIFICATIONS_ROW_ID))).toExist()
await expect(element(by.id(SettingsE2eIdConstants.SHARE_APP_ROW_ID))).toExist()
await expect(element(by.id(SettingsE2eIdConstants.PRIVACY_ROW_ID))).toExist()
await expect(element(by.id(SettingsE2eIdConstants.IN_APP_RECRUITMENT_ID))).toExist()
})

it('should show "Manage account" screen', async () => {
Expand Down
4 changes: 2 additions & 2 deletions VAMobile/e2e/tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const CommonE2eIdConstants = {
OK_UNIVERSAL_TEXT: 'OK',
CLAIMS_HISTORY_BUTTON_ID: 'toClaimsHistoryID',
CANCEL_PLATFORM_SPECIFIC_TEXT: device.getPlatform() === 'ios' ? 'Cancel' : 'Cancel ',
DEVELOPER_SCREEN_ROW_TEXT: 'Developer Screen',
RESET_INAPP_REVIEW_BUTTON_TEXT: 'Reset in-app review actions',
REMOTE_CONFIG_TEST_ID: 'remoteConfigTestID',
REMOTE_CONFIG_BUTTON_TEXT: 'Remote Config',
Expand Down Expand Up @@ -99,6 +98,7 @@ export const CommonE2eIdConstants = {
MESSAGES_INBOX_BUTTON_ID: 'toMessageInboxID',
PRESCRIPTIONS_BUTTON_ID: 'toPrescriptionsID',
VACCINES_BUTTON_ID: 'toVaccineListID',
DEVELOPER_SCREEN_BUTTON_ID: 'toDeveloperScreenID',
}

/** Log the automation into demo mode
Expand Down Expand Up @@ -391,7 +391,7 @@ export async function openClaimsHistory() {
}

export async function openDeveloperScreen() {
await element(by.text(CommonE2eIdConstants.DEVELOPER_SCREEN_ROW_TEXT)).tap()
await element(by.id(CommonE2eIdConstants.DEVELOPER_SCREEN_BUTTON_ID)).tap()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function SettingsScreen({ navigation }: SettingsScreenProps) {
]

return (
<Box mt={theme.dimensions.standardMarginBetween}>
<Box mt={theme.dimensions.standardMarginBetween} testID="toDeveloperScreenID">
<SimpleList items={debugButton} />
</Box>
)
Expand Down

0 comments on commit 7200db8

Please sign in to comment.