Maestro Integration Tests — Staff App
Auth flows for the KROW Staff app.
See docs/research/flutter-testing-tools.md and maestro-test-run-instructions.md.
Structure
maestro/
auth/
sign_in.yaml
sign_up.yaml
navigation/
home.yaml
shifts.yaml
profile.yaml
payments.yaml
clock_in.yaml
profile/
personal_info.yaml
documents_list.yaml
certificates_list.yaml
compliance/
document_upload_banner.yaml # #550
certificate_upload_banner.yaml # #551
attire_upload_banner.yaml # #552
shifts/
find_shifts.yaml
incomplete_profile_banner.yaml # #549 (requires incomplete-profile user)
home/
benefits.yaml # #524
Prerequisites
- Firebase test phone in Auth > Phone (e.g. +1 555-765-4321 / OTP 123456)
- For sign_up: use a different test number (not yet registered)
Credentials (env, never hardcoded)
| Flow | Env variables |
|---|---|
| sign_in | TEST_STAFF_PHONE, TEST_STAFF_OTP |
| sign_up | TEST_STAFF_SIGNUP_PHONE, TEST_STAFF_OTP |
Sign-in: +1 555-555-1234 (env: 5555551234) / 123123
Run
# Via Makefile (export vars first)
make test-e2e-staff
# Direct
maestro test apps/mobile/apps/staff/maestro/auth/sign_in.yaml \
-e TEST_STAFF_PHONE=5557654321 -e TEST_STAFF_OTP=123456
maestro test apps/mobile/apps/staff/maestro/auth/sign_up.yaml \
-e TEST_STAFF_SIGNUP_PHONE=... -e TEST_STAFF_OTP=123456