Skip to content

[BUG] onFlowStart hook is unable to reference appId #62

@zcsteele

Description

@zcsteele

Description

During the "onFlowStart" hook, the 'launchApp' command cannot reference the default appId configuration value.

Steps to Reproduce

Sample flow:

appId: com.google.android.deskclock
onFlowStart:
  - launchApp
---
- extendedWaitUntil:
    visible:
      id: "digital_clock"

Expected Behavior

The clock app should launch when the test case starts

Actual Behavior

The clock app never launches

Environment

  • OS: macOS 26.2
  • maestro-runner version: 1.1.12
  • Executor: uiautomator2
  • Device/Simulator: Observed with both android emulator (Pixel 3a API 34) and real device (Pixel 8a)

Additional Context

If the flow is modified to instead launch the app as a command, the clock app launches and the test case passes:

appId: com.google.android.deskclock
---
- launchApp
- extendedWaitUntil:
    visible:
      id: "digital_clock"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions