Add 3 passing UI tests (batch 7): insights collapse, pull-to-refresh, share no data
- TC-046: Insights section collapse/expand via header tap - TC-047: Pull-to-refresh gesture on Insights tab - TC-119: Share with empty data handles gracefully - Added accessibility IDs to InsightsSectionView sections and MonthView share button - Marked 6 tests RED: TC-040 (DEBUG triple-tap), TC-041 (dead code), TC-091 (DEBUG paywall lab), TC-113/114/115 (SharingListView dead code) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -66,6 +66,7 @@ struct InsightsView: View {
|
||||
imagePack: imagePack,
|
||||
colorScheme: colorScheme
|
||||
)
|
||||
.accessibilityIdentifier(AccessibilityID.Insights.monthSection)
|
||||
|
||||
// This Year Section
|
||||
InsightsSectionView(
|
||||
@@ -78,6 +79,7 @@ struct InsightsView: View {
|
||||
imagePack: imagePack,
|
||||
colorScheme: colorScheme
|
||||
)
|
||||
.accessibilityIdentifier(AccessibilityID.Insights.yearSection)
|
||||
|
||||
// All Time Section
|
||||
InsightsSectionView(
|
||||
@@ -90,6 +92,7 @@ struct InsightsView: View {
|
||||
imagePack: imagePack,
|
||||
colorScheme: colorScheme
|
||||
)
|
||||
.accessibilityIdentifier(AccessibilityID.Insights.allTimeSection)
|
||||
}
|
||||
.padding(.vertical)
|
||||
.padding(.bottom, 100)
|
||||
|
||||
@@ -603,6 +603,7 @@ struct MonthCard: View, Equatable {
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityLabel("Share \(Random.monthName(fromMonthInt: month)) \(String(year)) mood data")
|
||||
.accessibilityIdentifier(AccessibilityID.MonthView.shareButton)
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 12)
|
||||
|
||||
Reference in New Issue
Block a user