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

Unrecognized field "appId" #2260

Closed
1 task done
Lucasdsk opened this issue Jan 20, 2025 · 4 comments
Closed
1 task done

Unrecognized field "appId" #2260

Lucasdsk opened this issue Jan 20, 2025 · 4 comments

Comments

@Lucasdsk
Copy link

Lucasdsk commented Jan 20, 2025

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  • Installed Maestro (v1.39.9)
  • Created a new __e2e__ folder
    • Added a new testFile.yml file inside the __e2e__/flows folder
  • Navigated to the folder path through terminal and run the command: maestro test testFile.yml

File content:

appId: xyz.myapp.app
tags:
  - ios
  - booking
---
- launchApp:
  appId: "xyz.myapp.app"
  arguments:
    isFooEnabled: true

I'm trying to pass arguments to the App, as described in the docs: https://maestro.mobile.dev/api-reference/commands/launchapp#sending-launch-arguments

Actual results

❯ maestro test testFile.yml
Failed to parse file: /Users/xxxxxx/development/xxxx/xxx-app/__e2e__/flows/testFile.yml:7
Unrecognized field "appId" (class maestro.orchestra.yaml.YamlFluentCommand), not marked as ignorable

If I remove the appId field, then I have a new issue with the arguments field:

❯ maestro test search-ride.yml
Failed to parse file: /Users/xxxxxx/development/xxxx/xxx-app/__e2e__/flows/testFile.yml:9
Unrecognized field "arguments" (class maestro.orchestra.yaml.YamlFluentCommand), not marked as ignorable

Expected results

To have the test running using what's shown in the docs.

About app

Its a private project written using Expo.

"expo": "~51.0.23",
"react-native": "0.74.3",

About environment

  • I'm using a Macbook Air 13", M3.
  • macOs: Sonoma 14.5

Logs

Logs
❯ maestro test testFile.yml
Failed to parse file: /Users/xxxxxx/development/xxxx/xxx-app/__e2e__/flows/testFile.yml:7
Unrecognized field "appId" (class maestro.orchestra.yaml.YamlFluentCommand), not marked as ignorable

Maestro version

1.39.9

How did you install Maestro?

Homebrew

Anything else?

No response

Copy link

linear bot commented Jan 20, 2025

@Fishbowler
Copy link
Contributor

This looks to be a boring problem of indentation.

You wrote:

- launchApp:
  appId: "xyz.myapp.app"
  arguments:
    isFooEnabled: true

It should be:

- launchApp:
    appId: "xyz.myapp.app"
    arguments:
      isFooEnabled: true

@Lucasdsk
Copy link
Author

I was backing here to close the issue because I realized the indentation problem 😅 Thank you @Fishbowler 🙏

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.
Thank you for helping keep us our issue tracker clean!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants