Open greeeg opened 6 months ago
Any update regarding this issue?
Hey @greeeg, thanks for reporting this bug - I reproduced it.
Directory hierarchy:
.maestro
├── assets
│ └── image.png
├── assets_example
│ └── flow.yaml
Flow:
appId: com.example.example
---
- launchApp
- addMedia:
- ../assets/image.png
Works (as it should)
maestro test .maestro/assets_example/flow.yaml
Does not work (but should work)
maestro test .maestro/assets_example
Error: The File "image.png" referenced in flow file: /Users/bartek/projects/demo_app/.maestro/assets_example/flow.yaml not found in workspace
Describe the bug
I have a project folder structure like this:
Assets contains medias I'm using with
addMedia
in my scenarios:When running
maestro test ./e2e/scenarios/my-scenario.yaml
, everything works as expected, but when I runmaestro test e2e/scenarios
, the relative path does not work. I could only make it work by moving the assets folder within thescenarios
folder.I would expect this to work in both contexts, or the notion of Maestro workspace needs to be clarified
Environment information (please complete the following information):