Add installApp command
Proposed changes
Added “installApp” command.
Testing
- Put an apk file in the desired directory.
- Add the command - installApp: “yourPath” to your test.
Issues fixed
Resolve #1665
We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.
We want this feature to also work on Maestro Cloud - so we must enforce the app binary to be inside Maestro workspace folder.
If I understand correctly, we already make it enforced. @bartekpacia
if (appFile != null && !appFile.exists()) throw CliError("App file does not exist: ${appFile.absolutePathString()}")
The pipeline got an error, there seems to be no authentication key, but idk why
Don't worry about the pipeline, it's expected. It only fails for external contributors, and it's okay, because we don't want to expose our backend secret key to external people.
I see, shall we merge it as it is?
Let's also add docs for this new command in mobile-dev-inc/maestro-docs
re: this
It's only checking if the app file exists, right? But it has to be inside Maestro workspace folder (together with all your flows, etc), so that when it's uploaded to Maestro Cloud (MC), it can work there as well.
If the app file is outside the Maestro workspace folder, it won't get uploaded and the flow will fail on MC.
All done 🥳 @bartekpacia https://github.com/mobile-dev-inc/maestro-docs/pull/68
Het @boranfrkn, we like this feature and will merge the PR soon, but first we need to make some changes to our backend platform.
Tentative plan is to release this in Maestro v1.39. Thanks for understanding and sorry about the delay!
The test failure is a flake.
It already occured previously here.
Screenshot
Rerunning.
EDIT This flake is now tracked as https://github.com/mobile-dev-inc/maestro/issues/2005
I see, thanks a lot Bartek. its passed 👍
FYI @bartekpacia https://github.com/boranfrkn/maestro/pull/1
Hey @Fishbowler any update here?
You only merged the change a few minutes ago, give us a chance! 😂