Athena — roomy-mobile/archive/changes/2025-12-24-fix-auth-flow-idempotency/proposal.md

Change: Fix Auth Flow Idempotency


tracked-issues:

  • tracker: linear id: RMY-151 url: https://linear.app/de-app-specialist/issue/RMY-151/create-maestro-flows-for-app-store-and-play-store-screenshot

Why

The screenshot-auth-flow.yaml creates a new user newuser@demo.roomy.app on each run. This causes:

  1. State pollution across runs (user accumulates in emulator)
  2. Potential auth failures if user already exists
  3. Non-deterministic behavior

Additionally, the auth flow numbering (01-04) conflicts with main flow numbering (also starts at 01), causing file overwrites when both run.

What Changes

  • MODIFIED Auth flow uses a deterministic test user that gets deleted/recreated each run
  • MODIFIED Auth flow screenshot numbering uses distinct prefix (e.g., auth-01-login.png vs 01-home.png)

Impact

  • Affected specs: screenshot-automation
  • Affected code:
    • .maestro/screenshot-auth-flow.yaml - Use deterministic user, fix numbering
    • roomy-firebase/scripts/seed-demo-data.js - Add cleanup for auth-flow test user

Reacties

Nog geen reacties