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

[Feature Request] how to reduce delay between actions globally? #1528

Open
DanteAndroid opened this issue Oct 16, 2023 · 5 comments
Open

[Feature Request] how to reduce delay between actions globally? #1528

DanteAndroid opened this issue Oct 16, 2023 · 5 comments
Labels
enhancement New feature request or improvement of an existing feature

Comments

@DanteAndroid
Copy link

It seems that the delay is set to a very long value, which is about 1-2 seconds after ui is fully drawn. I would like to reduce the delay between actions globally, to get faster test speed in every flow.

@DanteAndroid DanteAndroid added the enhancement New feature request or improvement of an existing feature label Oct 16, 2023
@arildojr7
Copy link
Contributor

Yeah, there are some waitForAppToSettle on code that make it slower. On a local build, I decreased its value and worked fine and faster. I'm sure it was introduced for some reason, but maybe there's another approach, like taking screenshots internally and comparing them (if the screenshoots are the same in a 300ms interval, we can assume that app is settle...)

@DanteAndroid
Copy link
Author

Yeah, there are some waitForAppToSettle on code that make it slower. On a local build, I decreased its value and worked fine and faster. I'm sure it was introduced for some reason, but maybe there's another approach, like taking screenshots internally and comparing them (if the screenshoots are the same in a 300ms interval, we can assume that app is settle...)

If so I would like to know the reason. And your approach is inspiring!

@CyberCyclone
Copy link

CyberCyclone commented Mar 27, 2024

The time between tests is a real pain point (5+ seconds!). The example video on the home page seems like it was artificially sped up. E.g, Tap events I want to be near instant and if I want to delay the next action, there's already assertVisible or assertNotVisible that can be used to delay actions. Once the conditions of those are met, then I want to immediately trigger the next action.

It would be nice to be able to configure this on a global setting if there's an action I want to deliberately wait, then there should be a waitTimeout as an action.

@ice-cap0
Copy link

ice-cap0 commented Dec 5, 2024

yeah this would be great

@EvanPartidas
Copy link

EvanPartidas commented Dec 29, 2024

Yeah, there are some waitForAppToSettle on code that make it slower. On a local build, I decreased its value and worked fine and faster. I'm sure it was introduced for some reason, but maybe there's another approach, like taking screenshots internally and comparing them (if the screenshoots are the same in a 300ms interval, we can assume that app is settle...)

Are you able to decrease total delay between tapOn commands to something along the lines of 100-250ms?

Even when setting waitToSettleTimeoutMs to a very low number I can't get the tapOn commands to be fast enough to beat a count-down timer in my app. This pitfall sadly makes maestro unusable for testing vital flows within my app. Not sure why it takes multiple seconds for Maestro to locate and tap on an element. Even this chimpanzee is way quicker than Maestro. Still a great tool, I really hope this delay thing gets fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request or improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

5 participants