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>
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
# screens/08-streak.yaml
|
|
#
|
|
# Marketing-Screenshot 08: Streak / Profil-Stats
|
|
#
|
|
# Ziel: Profil-Screen mit StreakSection und Schutz-Abdeckungs-Donut sichtbar.
|
|
# Der Test-Account (admin) sollte eine Streak > 0 haben für vorzeigbare Zahlen.
|
|
# profile.streak_section_label = "SCHUTZ-ABDECKUNG" (de.json)
|
|
# profile.streak_days_protected = "Tage geschützt"
|
|
#
|
|
# Screenshot-Strategie: Profil öffnen, auf StreakSection scrollen.
|
|
#
|
|
# Screenshot-Output: screenshots/08-streak.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"
|
|
|
|
# --- Profil öffnen via Header-Dropdown ---
|
|
# FRAGILE: Koordinaten-Tap bis testID="header-avatar-btn" gesetzt ist
|
|
- tapOn:
|
|
id: "header-avatar-btn"
|
|
- waitForAnimationToEnd:
|
|
timeout: 2000
|
|
|
|
- assertVisible:
|
|
text: "Profil"
|
|
- tapOn:
|
|
text: "Profil"
|
|
- waitForAnimationToEnd:
|
|
timeout: 4000
|
|
|
|
- assertVisible:
|
|
text: "Profil"
|
|
|
|
# Zur StreakSection scrollen (liegt unterhalb ProfileHeader + StatsBar)
|
|
# profile.streak_section_label = "SCHUTZ-ABDECKUNG"
|
|
- scrollUntilVisible:
|
|
element:
|
|
text: "SCHUTZ-ABDECKUNG"
|
|
direction: DOWN
|
|
timeout: 6000
|
|
|
|
- assertVisible:
|
|
text: "SCHUTZ-ABDECKUNG"
|
|
|
|
- waitForAnimationToEnd:
|
|
timeout: 1000
|
|
|
|
- takeScreenshot: screenshots/08-streak
|