Adds e2e symptom data input tests and necessary testIDs to the existing components

This commit is contained in:
mashazyu
2019-08-30 22:38:53 +02:00
parent 85b5b4d387
commit c0235d148b
9 changed files with 2108 additions and 1995 deletions
+1
View File
@@ -50,6 +50,7 @@ class Note extends SymptomView {
this.setState({ currentValue: val })
}}
value={this.state.currentValue}
testID='noteInput'
/>
</SymptomSection>
</ScrollView>
@@ -70,6 +70,7 @@ export default class TemperatureInput extends Component {
onChangeText={this.setTemperature}
keyboardType='numeric'
maxLength={5}
testID='temperatureInput'
/>
<AppText style={{ marginLeft: 5 }}>°C</AppText>
</View>
@@ -110,6 +110,7 @@ class Temperature extends SymptomView {
placeholder={sharedLabels.enter}
value={this.state.note}
onChangeText={this.setNote}
testID='noteInput'
/>
</SymptomSection>
<SymptomSection
@@ -49,6 +49,7 @@ export default class TimeInput extends Component {
style={styles.temperatureTextInput}
onFocus={this.showTimePicker}
value={this.props.time}
testID='timeInput'
/>
<DateTimePicker
mode="time"