我正在尝试验证元素不存在 . 但当我这样做时:

await waitFor(element(by.label('Erro'))).toNotExist().withTimeout(800);
await expect(element(by.label('Erro'))).toNotExist();

我得到了“错误:超出240000ms超时 . 对于异步测试和挂钩,确保调用”done()“;如果返回Promise,请确保它解析 . ”

排毒:5.10.0节点:5.6.0设备:iPhone 6s plus(仿真器)Xcode:9.2 macOS:Sierra 10.12.6

设备和详细的排毒日志

detox verb ws send:{“type”:“invoke”,“params”:{“target”:{“type”:“Invocation”,“value”:{“target”:{“type”:“Invocation” “值”:{ “目标”:{ “类型”: “EarlGrey”, “值”: “例如”}, “方法”: “detox_selectElementWithMatcher:”, “ARGS”:[{ “类型”: “调用” “值”:{ “目标”:{ “类型”: “类”, “值”: “GREYMatchers”}, “方法”: “detox_matcherForAccessibilityLabel:”, “ARGS”:[{ “类型”: “的NSString” ,“value”:“Saldo de conta-corrente”}]}}]}},“method”:“atIndex:”,“args”:[{“type”:“NSInteger”,“value”:0}] }}, “方法”: “的performAction:”, “ARGS”:[{ “类型”: “调用”, “值”:{ “目标”:{ “类型”: “类”, “值”:“GREYActions “},”方法“:”actionForTap“,”args“:[]}}}},”messageId“:10} detox动词ws onMessage:{”type“:”invokeResult“,”messageId“:10,”params “:{”result“:”(GREYElementInteraction)“}} detox verb ws detox verb ws send:{”type“:”invoke“,”params“:{”target“:{”type“:”Invocation“,”值 “:{” 目标 “:{” 类型 “:” 类 “ ”值“: ”GREYCondition“}, ”方法“: ”detoxConditionForNotElementMatched:“, ”ARGS“:[{ ”类型“: ”调用“,”值“:{”圆盾吨 “:{” 类型 “:” EarlGrey “ ”值“: ”例如“}, ”方法“: ”detox_selectElementWithMatcher:“, ”ARGS“:[{ ”类型“: ”调用“, ”值“:{”目标 “:{” 类型 “:” 类”, “值”: “GREYMatchers”}, “方法”: “detoxMatcherForBoth:和:”, “ARGS”:[{ “类型”: “调用”, “值”: { “目标”:{ “类型”: “类”, “值”: “GREYMatchers”}, “方法”: “detox_matcherForAccessibilityLabel:”, “ARGS”:[{ “类型”: “的NSString”, “值”: “ERRO”}]}},{ “类型”: “调用”, “值”:{ “目标”:{ “类型”: “类”, “值”: “GREYMatchers”}, “方法”:“matcherForNotNil ”, “参数” msgid:[]}}]}}]}}]}}, “方法”: “waitWithTimeout:”, “ARGS”:[{ “类型”: “CGFloat的”, “值”:0.8}] },“messageId”:11} 1)Saldo conta corrente detox verb ws send:{“type”:“cleanup”,“params”:{“stopRunner”:false},“messageId”:12} detox verb ws onMessage: {“type”:“cleanupDone”,“messageId”:12,“params”:{}}排毒动词ws 0传递(4m)1失败Consultas Saldo conta corrente:错误:超出240000ms超时 . 对于异步测试和挂钩,确保调用“done()”;如果返回Promise,请确保它已解决 .