Skip to content

Commit

Permalink
style: update test id for bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckT committed Jul 4, 2024
1 parent bf4648e commit 0320f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/keylessBackup/SignInWithEmail.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe('SignInWithEmail', () => {
expect(getByTestId('SignInWithEmail/SignInAnotherWay')).toBeTruthy()

fireEvent.press(getByTestId('SignInWithEmail/SignInAnotherWay'))
expect(getByTestId('KeylessBackupSignInWithEmail/HelpInfoBottomSheet')).toBeTruthy()
expect(getByTestId('KeylessBackupSignInWithEmail/BottomSheet')).toBeTruthy()

fireEvent.press(getByText('signInWithEmail.bottomSheet.continue'))
expect(navigate).toHaveBeenCalledWith(Screens.AccountKeyEducation, {
Expand All @@ -211,7 +211,7 @@ describe('SignInWithEmail', () => {
expect(getByTestId('SignInWithEmail/SignInAnotherWay')).toBeTruthy()

fireEvent.press(getByTestId('SignInWithEmail/SignInAnotherWay'))
expect(getByTestId('KeylessBackupSignInWithEmail/HelpInfoBottomSheet')).toBeTruthy()
expect(getByTestId('KeylessBackupSignInWithEmail/BottomSheet')).toBeTruthy()

fireEvent.press(getByText('signInWithEmail.bottomSheet.skip'))
expect(navigate).toHaveBeenCalledWith(Screens.VerificationStartScreen)
Expand Down
2 changes: 1 addition & 1 deletion src/keylessBackup/SignInWithEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function SignInWithEmailBottomSheet({
forwardedRef={bottomSheetRef}
title={t('signInWithEmail.bottomSheet.title')}
titleStyle={styles.bottomSheetTitle}
testId="KeylessBackupSignInWithEmail/HelpInfoBottomSheet"
testId="KeylessBackupSignInWithEmail/BottomSheet"
>
<Text style={styles.bottomSheetDescription}>
{t('signInWithEmail.bottomSheet.description')}
Expand Down

0 comments on commit 0320f30

Please sign in to comment.