Open crazyvan opened 3 months ago
Happening to me as well. I tap a button and then react a screen and I can't interact with the elements on that screen.
await element(by.id('my_button')).tap() await element(by.id('my_field')).typeText('abc')
19:40:08.680 detox[35206] i The app is busy with the following tasks:
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
• Run loop "Main Run Loop" is awake.
• 1 enqueued native timers:
- Timer # 1:
+ Fire date: none.
+ Time until fire: 0.000.
+ Repeat interval: 0.
+ Is recurring: YES.
I added await device.disableSynchronization()/enableSynchronization() on several places but still no resolution.
detox ver 20.24.0 device iphone 15 ios 17.5
Same here. My tests are not working, stuck with an error "The app has not responded to the network requests below: (id = -1000) isReady: {} "
Any solution to this, am having the same problem. The moment you tap the button that should send a network request it shows this:
12:01:38.726 detox[34139] i The app is busy with the following tasks: • 1 enqueued native timers:
What happened?
I have a test which taps a button:
Its
onPress
handler dispatches redux actions which eventually send requests to a server, Detox waits for these to complete which is fine and then the test is stuck and the following expectation times out:On iOS the output is:
Similarly on Android emu the output is:
I've tried the following which didn't make a difference and the output was the same:
What was the expected behaviour?
No response
Was it tested on latest Detox?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.25.1 React Native version: 0.71.12 Has Fabric (React Native's new rendering system) enabled: no Node version: 22.5.1 Device model: iPhone 15 iOS version: 17.5 macOS version: Sonoma 14.6.1 Xcode version: 15.4 Test-runner (select one): jest
Detox logs
Detox logs
``` 20:15:13.055 detox[29962] E ws-client tap 20:15:13.056 detox[29962] i ws-client send message data: {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxAssertion"},"method":"waitForAssertMatcher","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["email-error-message",{"type":"boolean","value":false}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[{"type":"Integer","value":75}]}},{"type":"Double","value":30}]},"messageId":53} 20:15:13.056 detox[29962] B ws-client undefined with timeout (30000 ms) data: { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxAssertion" }, "method": "waitForAssertMatcher", "args": [ { "type": "Invocation", "value": { "target": { "type": "Class", "value": "androidx.test.espresso.Espresso" }, "method": "onView", "args": [ { "type": "Invocation", "value": { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxMatcher" }, "method": "matcherForTestId", "args": [ "email-error-message", { "type": "boolean", "value": false } ] } } ] } }, { "type": "Invocation", "value": { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxMatcher" }, "method": "matcherForSufficientlyVisible", "args": [ { "type": "Integer", "value": 75 } ] } }, { "type": "Double", "value": 30 } ] } stack: /e2e/tests/organicRegistration.e2e.ts:217:22 processTicksAndRejections (node:internal/process/task_queues:95:5) RUNS e2e/tests/organicRegistration.e2e.ts 20:15:13.056 detox[29959] i ws-server@61235 get data: {"type":"invoke","params":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxAssertion"},"method":"waitForAssertMatcher","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"androidx.test.espresso.Espresso"},"method":"onView","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForTestId","args":["email-error-message",{"type":"boolean","value":false}]}}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"com.wix.detox.espresso.DetoxMatcher"},"method":"matcherForSufficientlyVisible","args":[{"type":"Integer","value":75}]}},{"type":"Double","value":30}]},"messageId":53} 20:15:13.056 detox[29959] i ws-server@61351 send data: { "type": "invoke", "params": { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxAssertion" }, "method": "waitForAssertMatcher", "args": [ { "type": "Invocation", "value": { "target": { "type": "Class", "value": "androidx.test.espresso.Espresso" }, "method": "onView", "args": [ { "type": "Invocation", "value": { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxMatcher" }, "method": "matcherForTestId", "args": [ "email-error-message", { "type": "boolean", "value": false } ] } } ] } }, { "type": "Invocation", "value": { "target": { "type": "Class", "value": "com.wix.detox.espresso.DetoxMatcher" }, "method": "matcherForSufficientlyVisible", "args": [ { "type": "Integer", "value": 75 } ] } }, { "type": "Double", "value": 30 } ] }, 20:15:13.189 detox[29962] i child-process:SPAWN_STDERR s_glBindAttribLocation: bind attrib 0 name position s_glBindAttribLocation: bind attrib 1 name color s_glBindAttribLocation: bind attrib 2 name localCoord 20:15:23.056 detox[29962] i ws-client send message data: {"type":"currentStatus","params":{},"messageId":54} RUNS e2e/tests/organicRegistration.e2e.ts 20:15:23.057 detox[29959] i ws-server@61235 get data: {"type":"currentStatus","params":{},"messageId":54} 20:15:23.057 detox[29959] i ws-server@61351 send data: { "type": "currentStatus", "params": {}, "messageId": 54 } 20:15:23.059 detox[29959] i ws-server@61351 get data: {"messageId":54,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:23.059 detox[29959] i ws-server@61235 send data: { "messageId": 54, "type": "currentStatusResult", "params": { "status": { "app_status": "idle" } 20:15:23.059 detox[29962] i ws-client get message data: {"messageId":54,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:23.061 detox[29962] i ws-client:APP_STATUS The app seems to be idle 20:15:33.062 detox[29962] i ws-client send message data: {"type":"currentStatus","params":{},"messageId":55} RUNS e2e/tests/organicRegistration.e2e.ts 20:15:33.063 detox[29959] i ws-server@61235 get data: {"type":"currentStatus","params":{},"messageId":55} 20:15:33.063 detox[29959] i ws-server@61351 send data: { "type": "currentStatus", "params": {}, "messageId": 55 } 20:15:33.065 detox[29959] i ws-server@61351 get data: {"messageId":55,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:33.065 detox[29959] i ws-server@61235 send data: { "messageId": 55, "type": "currentStatusResult", "params": { "status": { "app_status": "idle" } 20:15:33.065 detox[29962] i ws-client get message data: {"messageId":55,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:33.065 detox[29962] i ws-client:APP_STATUS The app seems to be idle 20:15:43.066 detox[29962] i ws-client send message data: {"type":"currentStatus","params":{},"messageId":56} RUNS e2e/tests/organicRegistration.e2e.ts 20:15:43.067 detox[29959] i ws-server@61235 get data: {"type":"currentStatus","params":{},"messageId":56} 20:15:43.067 detox[29959] i ws-server@61351 send data: { "type": "currentStatus", "params": {}, "messageId": 56 } 20:15:43.079 detox[29959] i ws-server@61351 get data: {"messageId":56,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:43.080 detox[29959] i ws-server@61235 send data: { "messageId": 56, "type": "currentStatusResult", "params": { "status": { "app_status": "idle" } 20:15:43.080 detox[29962] i ws-client get message data: {"messageId":56,"type":"currentStatusResult","params":{"status":{"app_status":"idle"}}} 20:15:43.080 detox[29962] i ws-client:APP_STATUS The app seems to be idle RUNS e2e/tests/organicRegistration.e2e.ts 20:15:43.148 detox[29959] i ws-server@61351 get data: {"messageId":53,"type":"testFailed","params":{"details":"30.0sec timeout expired without matching of given matcher: (view has effective visibilityDevice logs
Device logs
``` paste logs here! ```More data, please!
detox.log detox.trace.json emulator-5554 2024-08-08 19-15-43Z.startup.log