Adding more tests
This commit is contained in:
@@ -278,6 +278,7 @@ class SymptomBox extends Component {
|
||||
<TouchableOpacity
|
||||
onPress={this.props.onPress}
|
||||
disabled={this.props.disabled}
|
||||
testID={this.props.iconName}
|
||||
>
|
||||
<View style={[styles.symptomBox, boxActive, disabledStyle]}>
|
||||
<DripIcon name={this.props.iconName} size={50} color={hasData ? 'white' : 'black'}/>
|
||||
|
||||
@@ -9,7 +9,7 @@ export default function InfoSymptom(props) {
|
||||
return (
|
||||
<View style={styles.infoPopUpWrapper}>
|
||||
<View style={styles.dimmed}></View>
|
||||
<View style={styles.infoPopUp}>
|
||||
<View style={styles.infoPopUp} testID="symptomInfoPopup">
|
||||
<TouchableOpacity onPress={props.close} style={styles.infoSymptomClose}>
|
||||
<Icon name='close' {...iconStyles.infoPopUpClose}/>
|
||||
</TouchableOpacity>
|
||||
|
||||
@@ -78,6 +78,7 @@ export default class SymptomView extends Component {
|
||||
this.setState({showInfo: true})
|
||||
}}
|
||||
style={styles.infoButtonSymptomView}
|
||||
testID="symptomInfoButton"
|
||||
>
|
||||
<Icon
|
||||
name="info-with-circle"
|
||||
|
||||
Reference in New Issue
Block a user