Skip to content

Commit f8a7c4e

Browse files
committed
refactor(mfa): prefix the outcome screen testID like the other new IDs
1 parent 4fbad10 commit f8a7c4e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/MultifactorAuthentication/components/OutcomeScreen/OutcomeScreenBase.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function OutcomeScreenBase({headerTitle, illustration, iconWidth, iconHeight, ti
7474
);
7575

7676
return (
77-
<ScreenWrapper testID={OutcomeScreenBase.displayName}>
77+
<ScreenWrapper testID="MultifactorAuthenticationOutcomeScreen">
7878
<HeaderWithBackButton
7979
title={headerTitle}
8080
onBackButtonPress={onClose}
@@ -91,7 +91,7 @@ function OutcomeScreenBase({headerTitle, illustration, iconWidth, iconHeight, ti
9191
titleStyles={[styles.mb2, titleStyle]}
9292
CustomSubtitle={CustomSubtitle}
9393
containerStyle={[styles.ph5, padding]}
94-
testID={OutcomeScreenBase.displayName}
94+
testID="MultifactorAuthenticationOutcomeScreen"
9595
/>
9696
</ScrollView>
9797
<View style={[styles.flexRow, styles.m5, styles.mt0]}>

tests/unit/components/MultifactorAuthentication/machine/graphTraversal/viewMatchesMachine.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jest.mock('@libs/Navigation/Navigation', () => jest.requireActual<typeof MfaReal
3535

3636
// These UI markers distinguish the closed, closing, and outcome states. The backdrop exists only while
3737
// the MFA navigator is mounted.
38-
const OUTCOME_SCREEN_TEST_ID = 'OutcomeScreenBase';
38+
const OUTCOME_SCREEN_TEST_ID = 'MultifactorAuthenticationOutcomeScreen';
3939
const MODAL_BACKDROP_TEST_ID = 'MultifactorAuthenticationModalBackdrop';
4040

4141
// This stable testID keeps the test independent of translated button text.

0 commit comments

Comments
 (0)