# Maestro to Argent migration prompt

Paste this into your coding agent from the root of your app repo and fill in the setup lines. The agent needs Argent installed (`npx @swmansion/argent@latest init`) and a simulator or emulator with your dev build on it.

```text
Migrate this repo's Maestro tests to Argent e2e tests and open one pull request. Work on your own and don't stop to ask me anything: decide, note the decision in the PR, and keep going.

My setup:
- Maestro folder: .maestro
- App id: com.example.app
- Simulator you may use: <udid or name>. Leave every other device alone.
- Test account, as secret names: <E2E_EMAIL, E2E_PASSWORD>
- Data you must never touch: <real accounts or records, or "none">

Rules:
1. Work in a new git worktree and branch. Leave my checkout alone.
2. Load the argent-create-e2e and argent-qa-e2e skills first. Read the Maestro README, helpers and every flow before you port anything.
3. The app on the current branch is the truth. Where an old flow is stale, follow the app and note the difference.
4. Tests only change data they created themselves, named with an "E2E " prefix. Check the name before every delete.
5. Type secrets as {{secret:NAME}}. Never put real values in the YAML or the PR.
6. Tap by id or text. Where Maestro tapped a screen position, find a real id or add a testID. Keep coordinates only as a last resort and list them in the PR.
7. Wait for the element you need next. Don't add fixed sleeps or an idle wait after every step.
8. A test is done when it passes twice in a row with unchanged YAML. If it fails because of the app, keep it failing, save the evidence and report the bug. Never weaken a test to get green.
9. After about 5 attempts on a stubborn test, document it and move on.

In the PR: pass counts per area, failing tests and why, app bugs you found, and every behavior you changed from the Maestro flows.
```
