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

Add Maestro screenshot generation #1528

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheLastProject
Copy link
Member

This is a PoC of generation screenshots with Maestro.

TODO:

  • Use "Catima" instead of "Catima Debug" app name (use the release APK perhaps?)
  • Generate all 7 other screenshots (TODO: requires dark mode, figure out how)
  • Somehow activate Android demo mode for prettier screenshots (this ensures the screenshots don't show a random timestamp in the title bar)
  • Somehow use different locales
  • Document this or write a script to generate all screenshots

One very big downside of Maestro is that it's slow. Extremely slow. It takes a full 6 minutes to generate this one screenshots. Scaling this to all Catima's supported languages may not be reasonable.

You can try the current code as follows:

  1. Install Maestro (sadly they don't have properly Linux packages)
  2. Manually start an Android Studio emulator (the autostart is broken on Linux: Unsupported architecture UNKNOWN [1.33.0] mobile-dev-inc/maestro#1492)
  3. Run maestro test maestro/01.yaml
  4. Wait 6(!) minutes
  5. Look at the new screenshot-01 image that's generated

@TheLastProject
Copy link
Member Author

Because Maestro is so slow we should see about using something else instead. Sure, Maestro is easiest, but it's ridiculously slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant