maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Subflows and integrate them into other flows

Open BenedictP opened this issue 1 year ago • 3 comments

Would be nice to have "subflows" wich can be written without an appId or launchApp command and they can be called from other flows. Our use case: When we want to test our checkout flow the user needs to enter the billing details (name, phone number etc.) after this the user can select a payment method. Of course, we want to test the checkout flow with different payment methods but currently, we need to do a lot of copy and paste because of the billing details screen which is error-prone and annoying ;)

BenedictP avatar Aug 26 '22 20:08 BenedictP

This is currently supported via a concept of initFlow (docs).

dmitry-zaitsev avatar Aug 29 '22 10:08 dmitry-zaitsev

Can an initFlow call an flow which also has an initFlow inside?

BenedictP avatar Aug 29 '22 10:08 BenedictP

After looking into it a bit more, perhaps initFlow is not exactly what you have in mind here. We will think on how to add some sort of an import command

dmitry-zaitsev avatar Aug 29 '22 15:08 dmitry-zaitsev

This is now solved by runFlow command released as part of 1.8.0

dmitry-zaitsev avatar Sep 22 '22 15:09 dmitry-zaitsev

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!

github-actions[bot] avatar Jul 11 '24 18:07 github-actions[bot]