Skip to content
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

Mock distance is not getting updated until you manually trigger it #1505

Closed
yogeshthanvi opened this issue Jul 4, 2019 · 2 comments
Closed

Comments

@yogeshthanvi
Copy link

Describe the bug
In my application there is list of locations gets populated and show the distance from the current location. When i use detox the distance never get populated until i reset the location mocking of simulator (Debug > Locations > apple or any ) using simulator menu.
To Reproduce

demo cant be provided u can take example of Airbnb

If possible, please provide a small demo project that reproduces the issue, or attach a video with the reproduction - this would be very appreciated.

Expected behavior
As per simulator settings it should show the distance

Environment (please complete the following information):

  • Detox: 13.0.1
  • React Native:0.59
  • Node:v10.15.1
  • Device: iphone X
  • Xcode: 11
  • iOS: 12.1
  • macOS: Mojave
@LeoNatan
Copy link
Contributor

LeoNatan commented Jul 4, 2019

I don't see a bug here. It's a problem in your mocking. If you need a real location, use device.setLocation().

@support
Copy link

support bot commented Jul 4, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.

For more information on bots in this reporsitory, read this discussion.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants