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

Env variables with spaces in value #1726

Open
dgreasi opened this issue Apr 24, 2024 · 0 comments
Open

Env variables with spaces in value #1726

dgreasi opened this issue Apr 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dgreasi
Copy link

dgreasi commented Apr 24, 2024

Describe the bug
I am trying to use env variables with spaces for text in my react native app. It seems that the .env.maestro file is not behaving like a usual .env file in Javascript.

I am getting the following error:

Unmatched argument at index -1: '7 Laverton Mews, London SW5'

To Reproduce

  1. Create your .env.maestro file in the root of your project with the following content
-e RUN_CURRENT_ORDER_FLOW=true
-e RUN_NEW_ORDER_FLOW=true
-e UK_ADDRESS_INPUT="7 Laverton Mews, London SW5"
  1. Run your test
maestro test -e APP_ID=${YOUR_APP_ID} .maestro/e2eFlow.yaml @.env.maestro

I also tried single quotes but I got the same.

if you try without the last line of the env file it's working as expected.

Expected behavior
Not failing when using such env variables

Environment information (please complete the following information):

  • Maestro version [e.g. v1.2.3]
  • Platform: iOS/Android
  • Framework: React Native
  • Device model and OS version: iPhone 15, Pixel 6a
  • Simulator, emulator and physical device
  • Host Mac M2
@dgreasi dgreasi added the bug Something isn't working label Apr 24, 2024
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

1 participant