maestro icon indicating copy to clipboard operation
maestro copied to clipboard

feat: add sleep command

Open rasyid7 opened this issue 1 month ago • 4 comments

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

rasyid7 avatar Nov 12 '25 09:11 rasyid7

Oooh, we're gonna need a matching PR in https://github.com/mobile-dev-inc/maestro-docs too

Fishbowler avatar Nov 22 '25 07:11 Fishbowler

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 avatar Nov 24 '25 04:11 rasyid7

@rasyid7 Lemme know if you're stuck for time to finish this off, and I'll look to find some time

Fishbowler avatar Dec 05 '25 14:12 Fishbowler

@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

rasyid7 avatar Dec 08 '25 04:12 rasyid7