我的用例是,我有一个表单,其中一些字段是手动填写的,其他字段将用户带到一个屏幕,他们可以在其中在一个大列表中搜索他们想要的值。仅接受用户输入的字段工作正常,但是当我尝试将属性添加readOnly = true到TextField可组合项时,出现以下错误:
None of the following functions can be called with the arguments supplied.\nTextField(TextFieldValue, (TextFieldValue) \xe2\x86\x92 Unit, Modifier = ..., TextStyle = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., (() \xe2\x86\x92 Unit)? = ..., Boolean = ..., VisualTransformation = ..., KeyboardOptions = ..., Boolean = ..., Int = ..., (ImeAction, SoftwareKeyboardController?) \xe2\x86\x92 Unit = ..., (SoftwareKeyboardController) \xe2\x86\x92 Unit = ..., InteractionState = ..., Color = …Run Code Online (Sandbox Code Playgroud) 当我尝试运行detox test模拟器时,模拟器似乎没有打开,并且测试只是超时。
我确认我的设置是正确的,并尝试这样做以确保我的模拟器可以从终端启动,并且我的detox配置中的设备类型是正确的。
我收到的错误如下。
Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.
Error: Timeout - Async callback was not invoked within the 300000ms timeout specified by jest.setTimeout.
Run Code Online (Sandbox Code Playgroud)
和
DetoxRuntimeError: Detox instance has not been initialized
HINT: There was an error on attempt to call detox.init()
DetoxRuntimeError: Aborted detox.init() execution, and now running detox.cleanup()
HINT: Most likely, your test runner is tearing down the suite due to the timeout …Run Code Online (Sandbox Code Playgroud)