RebreakVpnService.onStartCommand crashed with SecurityException because Android 16's validateForegroundServiceType rejects the implicit 2-arg startForeground(). Now passes FOREGROUND_SERVICE_TYPE_SPECIAL_USE explicitly (Google's documented best practice) and guards the call so a failed foreground promotion stops the service cleanly instead of crashing the app. Verified vs reported Galaxy A54 / Android 16 signature (97% of crash events, 1-user crash loop). Bundles pending working-tree work across native/marketing/locales/mac + graphify-out rebuild. gitignore: google-services.json + /screenshots/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
# screens/05-breathing.yaml
|
|
#
|
|
# Marketing-Screenshot 05: Atemübung
|
|
#
|
|
# Ziel: BreathingDrawer geöffnet auf dem SOS-Screen.
|
|
# Der Drawer zeigt die geführte Atemübung — visuell stark, klar beruhigend.
|
|
#
|
|
# Pfad: Login → SOS → Lyra antwortet → "Atemübung"-Chip tippen → BreathingDrawer offen
|
|
#
|
|
# Screenshot-Output: screenshots/05-breathing.png
|
|
# Env-Vars: E2E_TEST_USER, E2E_TEST_PASSWORD
|
|
|
|
appId: org.rebreak.app
|
|
---
|
|
- launchApp:
|
|
clearState: true
|
|
|
|
- waitForAnimationToEnd:
|
|
timeout: 5000
|
|
|
|
# --- Auth ---
|
|
- assertVisible:
|
|
text: "E-Mail"
|
|
- tapOn:
|
|
text: "E-Mail"
|
|
- inputText: ${E2E_TEST_USER}@rebreak.internal
|
|
- tapOn:
|
|
text: "Passwort"
|
|
- inputText: ${E2E_TEST_PASSWORD}
|
|
- tapOn:
|
|
text: "Anmelden"
|
|
- waitForAnimationToEnd:
|
|
timeout: 10000
|
|
|
|
- assertVisible:
|
|
text: "ReBreak"
|
|
|
|
# --- SOS öffnen ---
|
|
# FRAGILE: Koordinaten-Tap bis testID="header-avatar-btn" gesetzt ist
|
|
- tapOn:
|
|
id: "header-avatar-btn"
|
|
- waitForAnimationToEnd:
|
|
timeout: 2000
|
|
|
|
- assertVisible:
|
|
text: "SOS"
|
|
- tapOn:
|
|
text: "SOS"
|
|
|
|
- waitForAnimationToEnd:
|
|
timeout: 12000
|
|
|
|
- assertVisible:
|
|
text: "Was beschäftigt dich?"
|
|
|
|
# "Atemübung" ist immer im initialen Chip-Set (CHIP_SETS.start in sosConstants.ts)
|
|
# Keine eigene Nachricht nötig — die Chips erscheinen beim Start des SOS-Screens
|
|
# sobald Lyra die erste Begrüßung gestreamt hat
|
|
- assertVisible:
|
|
text: "Atemübung"
|
|
|
|
# BreathingDrawer öffnen
|
|
- tapOn:
|
|
text: "Atemübung"
|
|
- waitForAnimationToEnd:
|
|
timeout: 3000
|
|
|
|
# BreathingDrawer ist offen: Header "Atemübung" sichtbar
|
|
- assertVisible:
|
|
text: "Atemübung"
|
|
|
|
- waitForAnimationToEnd:
|
|
timeout: 1500
|
|
|
|
- takeScreenshot: screenshots/05-breathing
|