-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test fail with timeout #134
Comments
Hey @iwater, Your test is missing an Expectation. You are currently performing an action on an element with the id it('should show hello screen after tap', async () => {
await element(by.id('skip_login')).tap()
await expect(element(by.id('hello_screen'))).toBeVisible()
}) You can read more about expectations here |
change to but got same result timeout |
@bogobogo May be a bit off topic, but do you think this error in general would be valuable to add to Troubleshooting.RunningTests? |
This issue may result from a background work that doesn't end. Detox will not execute commands while the app isn't idle. @LeoNatan created a method that will inform the user on such background tasks when failing to execute, we will add it soon. Hopefully it will help debugging these kind of issues a breeze. |
yes, there is a long running background task for db sync |
If you have a long running task, it may be interfering with our synchronisation mechanism. We plan to add support for granular control of what is taken into account when synchronising, as well as the aforementioned helper tool to guide you on why the tests was blocked. |
detox@5.1.0 can now report on the reason it waits for app. add When an action/expectation takes a significant amount of time use this option to print device synchronization status. The status will be printed if the action takes more than [value]ms to complete |
❤️ |
add testid "skip_login" and test with xcode Identifier, but always got timeout
![2017-05-20 4 02 05](https://cloud.githubusercontent.com/assets/108937/26274166/caf4dbe6-3d75-11e7-868b-3002889d45bc.png)
![2017-05-20 4 02 26](https://cloud.githubusercontent.com/assets/108937/26274167/cd4ae638-3d75-11e7-95e1-6d0588b26b5c.png)
The text was updated successfully, but these errors were encountered: