mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.67k stars 258 forks source link

Pass different, platform-specific `appId`s in a single flow #1472

Open bartekpacia opened 12 months ago

bartekpacia commented 12 months ago

Use case

My app is cross-platform, and its UI and accessibility labels are almost 100% the same across Android and iOS. The only thing that differs is the application ID (Android) and bundle ID (iOS), for historical reasons.

I'd like to be able to run the same flow on both platforms easily. Currently I have to change the appId manually inside the flow, or pass appId as env var, or split my single flow into 3 flows: 2 platform-specific flows and 1 common flow, containing all the test steps.

I think each of these solutions add a bit too much friction for something so basic.

Proposal

appId:
  android: pl.baftek.discoverrudy
  ios: pl.baftek.discoverRudy
---
- clearState
- launchApp
- tapOn: Increment
# ...
felipevolpone commented 6 months ago

We don't plan to support this as env vars already addresses the problem

github-actions[bot] commented 2 months ago

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!

bartekpacia commented 1 month ago

I don't quite agree with that -- and I'll use my newly gained superpowers to reopen this issue up for further discussion :)