maestro
maestro copied to clipboard
[v1.32.0] Tags don't work with executionOrder
Describe the bug
If I set executionOrder
and flowsOrder
in config.yaml
, then try to run maestro with exclude-tags
or include-tags
, I get the following error:
❯ maestro test frontend/mobile/test/flows/ --include-tags=smoke-test
java.lang.IllegalStateException: Could not find Flow with name Leave Job In Progress
To Reproduce
- Create a
config.yaml
withflowsOrder
set to at least one flow that doesn't contain any tags - Start the simulator
- Run
maestro test <directory> --include-tags=foo
Expected behavior
The flowsOrder
should be respected while skipping any test cases that don't match the exclude-tags
or include-tags
conditions
possibly related to this function? looks like a list is constructed from the flow order, but doesn't take tags into account to begin with
https://github.com/mobile-dev-inc/maestro/blob/96920b1f8ff64c705fb33b0abc004449909e65bb/maestro-orchestra/src/main/java/maestro/orchestra/workspace/WorkspaceExecutionPlanner.kt#L137-L154
Experiencing this issue also on Maestro CLI v1.35.0.