A TypeScript-based solution inspired by maestro-ts for writing and running Maestro flows in a modular and reusable way.
- You can write Maestro flows in TypeScript and execute directly.
- Break down Flow into smaller, reusable modules
- Automatically load environment variables from .env
- Handling runScript with type.
If you have not installed maestro yet, you have to install it at first.
pnpm -D add maests
Create a new file my-first-flow.ts:
import { M } from "maests";
M.initFlow({ appId: "com.myTeam.myApp" });
M.tapOn("someTestId");
If the Android Emulator or iOS Simulator is launched, you can execute the test with:
npx maests my-first-flow.ts
If you don't have a project to try, the Playground is ready for you to use.
Most of the issues are caused by Maestro itself rather than this library. But you can still check the YAML files that are generated by maests in the "maests" folder.
This package is currently under active development, and we welcome contributions from everyone!