From e13b21f577d39f8f052d064a833fde1a7c6acca5 Mon Sep 17 00:00:00 2001 From: Petr Knetl Date: Fri, 17 Jan 2025 08:31:31 +0100 Subject: [PATCH] fix(suite-native): welcome flow test ids --- suite-native/atoms/src/Switch.tsx | 5 +++-- .../module-onboarding/src/screens/AnalyticsConsentScreen.tsx | 5 +++-- suite-native/module-onboarding/src/screens/WelcomeScreen.tsx | 5 ++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/suite-native/atoms/src/Switch.tsx b/suite-native/atoms/src/Switch.tsx index 0e1cd19dee..39ad60ed2d 100644 --- a/suite-native/atoms/src/Switch.tsx +++ b/suite-native/atoms/src/Switch.tsx @@ -17,6 +17,7 @@ type SwitchProps = { isChecked: boolean; onChange: (value: boolean) => void; isDisabled?: boolean; // Functionality of disabled works but styles are not implemented yet (waiting for design) + testID?: string; }; const SWITCH_CONTAINER_BORDER_WIDTH = 1; @@ -89,7 +90,7 @@ const useAnimationStyles = ({ isChecked }: Pick) => { }; }; -export const Switch = ({ isChecked, onChange, isDisabled = false }: SwitchProps) => { +export const Switch = ({ isChecked, onChange, isDisabled = false, testID }: SwitchProps) => { const { applyStyle } = useNativeStyles(); const { animatedSwitchCircleStyle, animatedSwitchContainerStyle } = useAnimationStyles({ @@ -102,7 +103,7 @@ export const Switch = ({ isChecked, onChange, isDisabled = false }: SwitchProps) }; return ( - + { { setIsEnabled(enabled); @@ -110,14 +111,14 @@ export const AnalyticsConsentScreen = () => {