Rollback-Punkt vor Expo SDK 54 / RN 0.81 Upgrade. UI/UX: - Profile: ProfileHeader redesign (sign-in chip + member-since), StatsBar 3 pill cards, Demographics accordion completed (Geburtsjahr, Geschlecht, Familienstand, Beruf-split, Wohnort), Pro-Trial-Banner, Approved-Domains list, DigaMissionBanner - Settings: section-based layout, neutral icons (matched Header dropdown style) - Header dropdown: extended with logout + games-page link - Notifications page: skeleton dummy data - Locales: i18n keys for new screens New components: - WheelPickerModal: native iOS UIPickerView wheel for long lists (Geburtsjahr 91 items, Bundesland 16, Stadt 30+/Bundesland) - OptionsBottomSheet: iOS-style options sheet (used briefly for Geschlecht, currently unused — kept for potential future use) - germanCities.ts: Top-cities per Bundesland (DSGVO-clean static data) New libs (NewArch-codegen verified): - @react-native-menu/menu 2.0.0 (UIMenu wrapper, Apple HIG-konform) - @lodev09/react-native-true-sheet 3.10.1 (UISheetPresentationController wrapper — ABER incompatible mit RN 0.79.6, Build-Error → Trigger für SDK-54-Upgrade) Maestro E2E: - Initial setup mit auth/community/profile/urge flows Scripts: - build-ios-clean.sh: Xcode DerivedData + ios/build cleanup vor expo run:ios Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
50 lines
1.8 KiB
YAML
50 lines
1.8 KiB
YAML
# auth/signin.yaml
|
|
# Smoke-test: App startet, Sign-in-Screen ist erreichbar, Login mit Test-User funktioniert.
|
|
# Selektor-Strategie: text: fuer statische Platzhalter (de.json-Werte, die sich
|
|
# nicht via Locale-Wechsel aendern sollten im Test-Setup). Falls i18n-Locale
|
|
# in CI auf 'en' steht, MUSS dieser Flow mit E2E_LOCALE=de laufen.
|
|
#
|
|
# Pre-requisite: App installiert, kein aktiver Auth-State (clearState loesche den).
|
|
# Env-Vars: E2E_TEST_USER (username ohne @rebreak.internal), E2E_TEST_PASSWORD
|
|
|
|
appId: org.rebreak.app
|
|
---
|
|
- launchApp:
|
|
clearState: true
|
|
|
|
# Warten bis die Auth-Screens geladen sind (Splash kann kurz blockieren)
|
|
- waitForAnimationToEnd:
|
|
timeout: 5000
|
|
|
|
# Sign-in-Screen sollte direkt erscheinen (kein Auth-State nach clearState).
|
|
# Fallback: falls Onboarding/Landing dazwischenkommt, muessen wir erst weiterklicken.
|
|
# Aktuell zeigt _layout.tsx direkt (auth)-Group wenn kein User.
|
|
- assertVisible:
|
|
text: "E-Mail"
|
|
|
|
# E-Mail-Feld benutzt placeholder-Text "E-Mail" (auth.emailPlaceholder in de.json).
|
|
# Kein testID gesetzt -> text-Selektor auf Placeholder ist stabiler als Index.
|
|
- tapOn:
|
|
text: "E-Mail"
|
|
- inputText: ${E2E_TEST_USER}@rebreak.internal
|
|
|
|
- tapOn:
|
|
text: "Passwort"
|
|
- inputText: ${E2E_TEST_PASSWORD}
|
|
|
|
# Submit-Button: Text "Anmelden" (auth.signin). Keine testID vorhanden.
|
|
- tapOn:
|
|
text: "Anmelden"
|
|
|
|
# Nach erfolgreichem Login landet der User auf dem Home-Feed ((app)-Group).
|
|
# ComposeCard ist das erste sichtbare Element nach AppHeader.
|
|
# Wir pruefen auf den App-Header (AppName via t('appHeader.appName')).
|
|
# Alternativ koennte hier auf einen Post-Feed-Element gewartet werden.
|
|
- waitForAnimationToEnd:
|
|
timeout: 8000
|
|
|
|
# Sanity: Dropdown-Menu-Trigger (Avatar im Header) muss sichtbar sein.
|
|
# Kein testID -> assertVisible auf AppName-Text (de.json: appHeader.appName = "ReBreak")
|
|
- assertVisible:
|
|
text: "ReBreak"
|