使用排毒检查禁用的按钮状态

时间:2019-06-09 20:26:45

标签: reactjs detox

我正在针对React Native ios应用程序运行Detox测试。用户需要确认密码才能启用“提交”按钮。有什么方法可以让Detox对禁用的按钮状态进行测试?我在“排毒匹配器”页面上没有看到任何支持此功能的匹配器,该功能在JSX语句中被编码为“禁用”属性。

       <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} />

1 个答案:

答案 0 :(得分:0)

您可以在Detox GitHub上检查that thread有关此问题。

相关问题