You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
20:04:33.972 detox[29339] i The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• There are 2 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
20:04:43.981 detox[29339] i The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• There are 2 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
20:04:53.988 detox[29339] i The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• There are 2 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
20:04:54.068 detox[29339] E ContactDetails screen - enter email that already exists, mobile that is not allowlisted and submit triggers form validation
error: Test Failed: Timed out while waiting for expectation: TOBEVISIBLE WITH MATCHER(id == “email-error-message”) TIMEOUT(30s)
HINT: To print view hierarchy on failed actions/matches, use log-level verbose or higher.
20:04:54.070 detox[29339] i Organic registration: test form validation, screen navigation and components [FAIL]
FAIL e2e/tests/organicRegistration.e2e.ts (100.898 s)
Organic registration
✕ test form validation, screen navigation and components (67226 ms)
● Organic registration › test form validation, screen navigation and components
Test Failed: Timed out while waiting for expectation: TOBEVISIBLE WITH MATCHER(id == “email-error-message”) TIMEOUT(30s)
HINT: To print view hierarchy on failed actions/matches, use log-level verbose or higher.
215 | await waitFor(contactDetailsScreen.emailErrorMessage)
216 | .toBeVisible()
> 217 | .withTimeout(timeout.thirtySecondsMillis);
| ^
218 |
219 | await expect(contactDetailsScreen.mobileErrorMessage).toBeVisible();
220 | await expect(contactDetailsScreen.dobErrorMessage).not.toBeVisible();
Similarly on Android emu the output is:
20:12:04.052 detox[29758] B ContactDetails screen - enter email that already exists, mobile that is not allowlisted and submit triggers form validation
20:12:10.366 detox[29758] i s_glBindAttribLocation: bind attrib 0 name position
s_glBindAttribLocation: bind attrib 1 name color
s_glBindAttribLocation: bind attrib 2 name localCoord
20:12:20.273 detox[29758] i The app seems to be idle
20:12:30.276 detox[29758] i The app seems to be idle
20:12:40.283 detox[29758] i The app seems to be idle
20:12:40.352 detox[29758] E ContactDetails screen - enter email that already exists, mobile that is not allowlisted and submit triggers form validation
error: Test Failed: 30.0sec timeout expired without matching of given matcher: (view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() covers at least <75> percent of the view's area)
20:12:40.353 detox[29758] i Organic registration: test form validation, screen navigation and components [FAIL]
FAIL e2e/tests/organicRegistration.e2e.ts (99.066 s)
Organic registration
✕ test form validation, screen navigation and components (49995 ms)
● Organic registration › test form validation, screen navigation and components
Test Failed: 30.0sec timeout expired without matching of given matcher: (view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() covers at least <75> percent of the view's area)
215 | await waitFor(contactDetailsScreen.emailErrorMessage)
216 | .toBeVisible()
> 217 | .withTimeout(timeout.thirtySecondsMillis);
| ^
218 |
219 | await expect(contactDetailsScreen.mobileErrorMessage).toBeVisible();
220 | await expect(contactDetailsScreen.dobErrorMessage).not.toBeVisible();
at tests/organicRegistration.e2e.ts:217:22
Test Suites: 1 failed, 1 total
Tests: 1 failed, 1 total
Snapshots: 0 total
Time: 99.448 s, estimated 101 s
I've tried the following which didn't make a difference and the output was the same:
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.
Is recurring: YES.
• Run loop "Main Run Loop" is awake.
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
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
Device logs
Device logs
More data, please!
detox.log
detox.trace.json
emulator-5554 2024-08-08 19-15-43Z.startup.log
The text was updated successfully, but these errors were encountered: