feat: expand XCUITest coverage to 54 QA scenarios with accessibility IDs and fix test failures
Add 22 new UI tests across 8 test files covering Home, Schedule, Progress, Settings, TabNavigation, TripSaving, and TripOptions. Add accessibility identifiers to 11 view files for test element discovery. Fix sport chip assertion logic (all sports start selected, tap deselects), scroll container issues on iOS 26 nested ScrollViews, toggle interaction, and delete trip flow. Update QA coverage map from 32 to 54 automated test cases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -170,6 +170,7 @@ struct HomeContent_Classic: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.featuredTripsSection")
|
||||
} else if let error = suggestedTripsGenerator.error {
|
||||
// Error state
|
||||
VStack(alignment: .leading, spacing: Theme.Spacing.sm) {
|
||||
@@ -238,6 +239,7 @@ struct HomeContent_Classic: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.recentTripsSection")
|
||||
}
|
||||
|
||||
private func classicTripCard(savedTrip: SavedTrip, trip: Trip) -> some View {
|
||||
@@ -319,6 +321,7 @@ struct HomeContent_Classic: View {
|
||||
.stroke(Theme.surfaceGlow(colorScheme), lineWidth: 1)
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.tipsSection")
|
||||
}
|
||||
|
||||
private func classicTipRow(icon: String, title: String, subtitle: String) -> some View {
|
||||
|
||||
@@ -170,6 +170,7 @@ struct HomeContent_ClassicAnimated: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.featuredTripsSection")
|
||||
} else if let error = suggestedTripsGenerator.error {
|
||||
// Error state
|
||||
VStack(alignment: .leading, spacing: Theme.Spacing.sm) {
|
||||
@@ -238,6 +239,7 @@ struct HomeContent_ClassicAnimated: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.recentTripsSection")
|
||||
}
|
||||
|
||||
private func classicTripCard(savedTrip: SavedTrip, trip: Trip) -> some View {
|
||||
@@ -319,6 +321,7 @@ struct HomeContent_ClassicAnimated: View {
|
||||
.stroke(Theme.surfaceGlow(colorScheme), lineWidth: 1)
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier("home.tipsSection")
|
||||
}
|
||||
|
||||
private func classicTipRow(icon: String, title: String, subtitle: String) -> some View {
|
||||
|
||||
Reference in New Issue
Block a user