通过排毒检查禁用的按钮状态

问题描述 投票:0回答:1

我正在针对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} />
reactjs detox
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.