Open Aquantis-94 opened 1 year ago
@Aquantis-94 could you try using the travel command in the meantime and let us know if that works for you? If you upgrade to the most recent version of maestro, are you still experiencing issues?
I have the same issue. setLocation once works, doing it again fails to set the new location and keeps the old one. For me travel
only worked on the emulator, but not on a real device. Any update?
If the setLocation action is used multiple times within a test it appears to not release the first location, and as such it will then jump between all mocked locations.
Below is the use case example, we want to create points at two points on a map by navigating to the location using setLocation. There are no issues after the first setLocation call - it correctly sets the location and is then able to execute the evalScript/runFlow. It is after it calls setLocation a second time where it begins to flick between the new and previous locations. See attached screen recording for example.
I have managed to replicate this in google maps, in a much simpler example script (attached). In this example it is simply setting location, doing an action, setting new location, another action.
The test finishes quickly, but you can see that right at the end the location begins to jump between set locations. Below are the screen recordings and example scripts used to replicate this in both scenarios.
appExample.zip googleExample.zip