feat(INJI-334): add testID for VC download flow

This commit is contained in:
Pooja Babusingh
2023-09-06 12:58:29 +05:30
parent 448ab2797c
commit bd3be0e268
6 changed files with 23 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import {
import { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
import { Text } from './Text';
import { Theme, Spacing } from './styleUtils';
import testID from '../../shared/commonUtil';
export const Button: React.FC<ButtonProps> = (props) => {
const type = props.type || 'solid' || 'radius' || 'gradient';
@@ -58,6 +59,7 @@ export const Button: React.FC<ButtonProps> = (props) => {
icon={props.icon}
onPress={handleOnPress}
loading={props.loading}
{...testID(props.testID)}
/>
) : (
<RNEButton
@@ -86,6 +88,7 @@ export const Button: React.FC<ButtonProps> = (props) => {
icon={props.icon}
onPress={handleOnPress}
loading={props.loading}
{...testID(props.testID)}
/>
);
};