Maestro is a powerful end-to-end (E2E) testing framework specifically designed for React Native applications. It enables developers to create comprehensive UI tests that simulate real user interactions and behaviors, making it easier to validate app functionality across different scenarios and user flows.

Maestro Key Commands

CommandDescription
appIdThe ID of the app to test. This is the same as the appId in the app.json file.
launchAppLaunch the app.
tapOnTap on an element.
doubleTapDouble tap on an element.
swipeSwipe on an element.
inputTextInput text into an element.
backNavigate back.
🏆 Challenge: Write a Maestro Test Flow

Let's create an awesome end-to-end test flow! 🚀

Create a maestro flow that tests the following steps:

  1. 📱 Launch the app
  2. 👤 Input the username "testUser123"
  3. 🔑 Input the password "securePass!"
  4. 🖱️ Tap on the "Submit" button
  5. ✅ Verify the success message appears

Resources

Is this lesson useful?