remove test id from mediaAutoDownloadView

This commit is contained in:
Reinaldo Neto 2023-07-05 15:23:50 -03:00
parent 8ed68eff9e
commit 5b57b35d16
2 changed files with 5 additions and 23 deletions

View File

@ -38,11 +38,9 @@ interface IBaseParams {
const ListPicker = ({ const ListPicker = ({
value, value,
title, title,
testID,
onChangeValue onChangeValue
}: { }: {
title: string; title: string;
testID: string;
} & IBaseParams) => { } & IBaseParams) => {
const { showActionSheet, hideActionSheet } = useActionSheet(); const { showActionSheet, hideActionSheet } = useActionSheet();
const { colors } = useTheme(); const { colors } = useTheme();
@ -61,7 +59,6 @@ const ListPicker = ({
return ( return (
<List.Item <List.Item
title={title} title={title}
testID={testID}
onPress={() => showActionSheet({ options: getOptions() })} onPress={() => showActionSheet({ options: getOptions() })}
right={() => ( right={() => (
<Text style={[styles.title, { color: colors.actionTintColor }]}> <Text style={[styles.title, { color: colors.actionTintColor }]}>

View File

@ -32,30 +32,15 @@ const MediaAutoDownload = () => {
}, [navigation]); }, [navigation]);
return ( return (
<SafeAreaView testID='media-auto-download-view'> <SafeAreaView>
<StatusBar /> <StatusBar />
<List.Container testID='media-auto-download-view-list'> <List.Container>
<List.Section> <List.Section>
<ListPicker <ListPicker onChangeValue={setImagesPreference} value={imagesPreference} title='Images' />
onChangeValue={setImagesPreference}
value={imagesPreference}
title='Images'
testID='media-auto-download-view-images'
/>
<List.Separator /> <List.Separator />
<ListPicker <ListPicker onChangeValue={setVideoPreference} value={videoPreference} title='Video' />
onChangeValue={setVideoPreference}
value={videoPreference}
title='Video'
testID='media-auto-download-view-video'
/>
<List.Separator /> <List.Separator />
<ListPicker <ListPicker onChangeValue={setAudioPreference} value={audioPreference} title='Audio' />
onChangeValue={setAudioPreference}
value={audioPreference}
title='Audio'
testID='media-auto-download-view-audio'
/>
</List.Section> </List.Section>
</List.Container> </List.Container>
</SafeAreaView> </SafeAreaView>