feat: add sleep command
Proposed changes
add sleep command. currently, there is no exact sleep command. literally sleep or wait.
Testing
the sleep itself is just simple Thread.sleep(time)
added serialization test.
Issues fixed
Oooh, we're gonna need a matching PR in https://github.com/mobile-dev-inc/maestro-docs too
This is looking awesome! Thanks so much!
Are there any other unit or integration tests we can add? Mostly thinking about the variations of the command syntax possible via YamlSleepCommand.
Let me know if this is something I can help with.
i have added more tests here https://github.com/mobile-dev-inc/Maestro/pull/2827/commits/a121f823162aa3a5eb05205a3fa2d3a8a7e7cae4
Oooh, we're gonna need a matching PR in https://github.com/mobile-dev-inc/maestro-docs too
and here is the PR for the docs https://github.com/mobile-dev-inc/maestro-docs/pull/157
thanks!
@rasyid7 Lemme know if you're stuck for time to finish this off, and I'll look to find some time
@rasyid7 Lemme know if you're stuck for time to finish this off, and I'll look to find some time
sure thing @Fishbowler ! if you believe there is a better approach to this, it would be great! specifically this one https://github.com/mobile-dev-inc/Maestro/pull/2827#discussion_r2571202466
thank you in advance