fix(maestro): add app recovery and longer timeouts for test stability

- Add launchApp: stopApp: false to mid-flow tests for crash recovery
- Increase extendedWaitUntil timeouts to 15s for reliability
- Fix quick actions test to use proper testID for search input
This commit is contained in:
skalthoff
2026-01-16 11:12:20 -08:00
parent 1ce049cea1
commit 2bcef8a656
6 changed files with 44 additions and 9 deletions

View File

@@ -3,12 +3,16 @@ appId: com.cosmonautical.jellify
# Playlist Management Test
# Tests adding tracks to playlists and viewing playlists
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Navigate to Library tab
# Use extendedWaitUntil for reliability after extended test runs
- extendedWaitUntil:
visible:
id: "library-tab-button"
timeout: 10000
timeout: 15000
- tapOn:
id: "library-tab-button"

View File

@@ -3,12 +3,16 @@ appId: com.cosmonautical.jellify
# Favorites Functionality Test
# Tests favoriting items and viewing favorites section
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Navigate to Library tab
# Use extendedWaitUntil for reliability after extended test runs
- extendedWaitUntil:
visible:
id: "library-tab-button"
timeout: 10000
timeout: 15000
- tapOn:
id: "library-tab-button"

View File

@@ -4,12 +4,25 @@ appId: com.cosmonautical.jellify
# This test validates the quick action menu that appears when swiping on track rows
# The test works with any swipe action configuration
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Start from Home tab
# Use extendedWaitUntil to handle app recovery scenarios
- extendedWaitUntil:
visible:
id: "home-tab-button"
timeout: 15000
- tapOn:
id: "home-tab-button"
# Wait for content to load
- assertVisible: "Home"
- extendedWaitUntil:
visible:
text: "Home"
timeout: 10000
# Try to navigate to Recently Played, but this may not exist for new users
- tapOn:

View File

@@ -1,10 +1,16 @@
appId: com.cosmonautical.jellify
---
# Wait for app to be ready, then navigate to Settings tab
- assertVisible:
id: "settings-tab-button"
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Wait for app to be ready, then navigate to Settings tab
# Use extendedWaitUntil for reliability after extended test runs
- extendedWaitUntil:
visible:
id: "settings-tab-button"
timeout: 15000
# Navigate to Settings tab using text
- tapOn:
id: "settings-tab-button"

View File

@@ -3,12 +3,16 @@ appId: com.cosmonautical.jellify
# Album Detail and Playback Test
# Tests browsing albums and playing from album view
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Navigate to Library tab
# Use extendedWaitUntil for reliability after extended test runs
- extendedWaitUntil:
visible:
id: "library-tab-button"
timeout: 10000
timeout: 15000
- tapOn:
id: "library-tab-button"

View File

@@ -3,12 +3,16 @@ appId: com.cosmonautical.jellify
# Artist Detail Navigation Test
# Tests browsing artist pages, discography, and tracks
# Ensure app is running - relaunch if crashed
- launchApp:
stopApp: false
# Navigate to Library tab
# Use extendedWaitUntil for reliability after extended test runs
- extendedWaitUntil:
visible:
id: "library-tab-button"
timeout: 10000
timeout: 15000
- tapOn:
id: "library-tab-button"