Build Your First Android App Check in Maestro Studio
Can you still open the contact editor after an Android app update? To answer that question, let Maestro tap Create contact and check for the First name field. This gives you a small test you can run twice without creating a contact. You can use a desktop computer and an Android emulator.
The tap performs the action. The assertion tells you whether the expected screen appeared.
Prepare the Contacts screen
Install Maestro Studio, start an Android emulator with Google Contacts installed, and set its language to English for this example. Open Contacts once, deal with any first-run prompts on this test device, then return to its contact list. In Studio, choose New workspace, pick a folder for your test, and use Select device to display the emulator. Compare the preview with the emulator window before recording any steps. Maestro Studio setup and controls
Write the smallest useful check
Choose New File, name it contact-editor.yaml, choose Contacts and click Create Test. The following flow assumes Google's Contacts package and the English labels in Maestro's example. Other Contacts apps can have different package names and labels. Use the identifier that Studio shows for the app on your emulator. Maestro's Android Contacts example
appId: com.google.android.contacts
---
- launchApp
- tapOn: "Create contact"
- assertVisible: "First name"
- backIf the screen shows a plus icon, right-click it in Studio's preview. Inspect the selector Studio suggests for that control. Do the same for the first-name field. Match the controls on your device before changing the flow. A tap aimed at the wrong icon can open a perfectly responsive but unrelated screen.
Read the result
Pick a safe screen
Start from the documented Contacts test state.
Assert one unique label
Use text visible only at the intended destination.
Save the evidence
Keep the flow and its pass or fail output with the build tested.
Click Run Test. A pass means Maestro reached the first-name assertion and found the field, then completed the remaining Back action. Run it again from the contact list. To check that the assertion can catch an error, temporarily replace First name with Field that does not exist 4837 and rerun. Maestro should stop at the assertion after it has waited for the element. Restore the correct selector afterward. How assertVisible waits and fails