maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[v1.32.0] Tags don't work with executionOrder

Open ferdy-roz opened this issue 1 year ago • 2 comments

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

  1. Create a config.yaml with flowsOrder set to at least one flow that doesn't contain any tags
  2. Start the simulator
  3. 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

ferdy-roz avatar Sep 24 '23 16:09 ferdy-roz

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

ferdy-roz avatar Sep 25 '23 22:09 ferdy-roz

Experiencing this issue also on Maestro CLI v1.35.0.

DavidREntwistle avatar Jan 29 '24 17:01 DavidREntwistle