Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.36.0] addMedia does not resolve path consistently based on execution context #1707

Open
greeeg opened this issue Mar 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@greeeg
Copy link

greeeg commented Mar 29, 2024

Describe the bug

I have a project folder structure like this:

.
├── e2e
│   ├── output
│   ├── assets
│   ├── scenarios
│   ├── scripts
│   └── utils

Assets contains medias I'm using with addMedia in my scenarios:

# e2e/scenarios/my-scenario.yaml
appId: com.example
name: Attach a receipt to a transaction
---
- addMedia:
    - '../assets/sample-receipt.jpg'

When running maestro test ./e2e/scenarios/my-scenario.yaml, everything works as expected, but when I run maestro test e2e/scenarios, the relative path does not work. I could only make it work by moving the assets folder within the scenarios 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):

  • Maestro version: 1.36.0
  • Platform: Android
  • Framework: React Native
  • Simulator
  • Mac M3
@greeeg greeeg added the bug Something isn't working label Mar 29, 2024
@mskhan18
Copy link

mskhan18 commented May 2, 2024

Any update regarding this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants