Maestro E2E Testing
Run Maestro end-to-end tests for the MedTasker app.
Usage
/maestro <platform>
Where <platform> is:
android- Build release for Android and run testsios- Build release for iOS and run tests
Prerequisites
- Maestro CLI installed
- Android emulator or iOS simulator running
.env.maestroconfigured with test credentials
Commands Reference
Build for Android (release):
pnpm e2e:build-android
Build for iOS (release):
pnpm e2e:build-ios
Run all tests:
pnpm e2e:run
Test Structure
e2e/config.yaml- Maestro configuratione2e/tests/- Test flow filese2e/steps/- Reusable step files
Task
Based on $ARGUMENTS:
If
android:- Verify Android emulator is running (
adb devices) - Build the release version:
pnpm e2e:build-android - Run Maestro tests:
pnpm e2e:run
- Verify Android emulator is running (
If
ios:- Verify iOS simulator is running (
xcrun simctl list devices | grep Booted) - Build the release version:
pnpm e2e:build-ios - Run Maestro tests:
pnpm e2e:run
- Verify iOS simulator is running (
If no arguments or unrecognized:
- Ask the user which platform to use (android or ios)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.