Adds e2e symptom data input tests and necessary testIDs to the existing components
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user