Open GibranPolonsky opened 1 month ago
I'm working with: import {render} from '@testing-library/react-native'; apprently the testID is not available when i try to access it
import {render} from '@testing-library/react-native';
My Implementation:
<RNSelectDropdown defaultValue={value} data={options} onSelect={(selectedOption: SelectItem) => onChange(selectedOption.value) } testID='testing' onBlur={onBlur} renderButton={() => ( <View style={styles.input}> <Text> {options.find(option => option.value === value)?.label || placeholder} </Text> </View> )} renderItem={(item: SelectItem) => ( <View style={styles.option}> <Text>{item.label}</Text> </View> )} />
I'm working with:
import {render} from '@testing-library/react-native';
apprently the testID is not available when i try to access itMy Implementation: