我正在对React Native ios应用程序进行排毒测试。用户需要确认其密码才能启用提交按钮。有没有办法让Detox对禁用的按钮状态进行测试?在排毒匹配器页面上,我没有看到任何匹配器似乎支持此功能,该功能在JSX语句中被编码为“disabled”属性。
<Button
small
title=' Save '
buttonStyle={[globalStyle.buttons.buttonPrimary, globalStyle.buttons.smallButton]}
disabled={Object.values(this.state.inCircleObj).length === 0 || this.props.circlePropLoading}
containerViewStyle={{ marginRight: 20 }}
onPress={() => { firebase.analytics().logEvent(`${this.constructor.name}_${SAVE_EDIT_CIRCLE}`); this.updateCircle() }}
fontSize={14} />发布于 2019-11-03 15:28:12
你可以在detox GitHub上查看关于这个问题的that thread。
https://stackoverflow.com/questions/56518144
复制相似问题