Complete accessibility identifier coverage across all 152 project files
Exhaustive file-by-file audit of every Swift file in the project (iOS app, Watch app, Widget extension). Every interactive UI element — buttons, toggles, pickers, links, menus, tap gestures, text editors, color pickers, photo pickers — now has an accessibilityIdentifier for XCUITest automation. 46 files changed across Shared/, Onboarding/, Watch App/, and Widget targets. Added ~100 new ID definitions covering settings debug controls, export/photo views, sharing templates, customization subviews, onboarding flows, tip modals, widget voting buttons, and watch mood buttons.
This commit is contained in:
@@ -52,6 +52,7 @@ struct SharingStylePickerView: View {
|
||||
.font(.headline)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.exitButton)
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -104,6 +105,7 @@ struct SharingStylePickerView: View {
|
||||
.background(Color.green)
|
||||
.cornerRadius(14)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.shareButton)
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.top, 12)
|
||||
.padding(.bottom, 24)
|
||||
@@ -160,6 +162,7 @@ struct LongestStreakPickerView: View {
|
||||
.font(.headline)
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.exitButton)
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -169,6 +172,7 @@ struct LongestStreakPickerView: View {
|
||||
selectedMood = mood
|
||||
recomputeStreak()
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.moodMenuButton(mood.strValue))
|
||||
}
|
||||
} label: {
|
||||
HStack(spacing: 6) {
|
||||
@@ -180,6 +184,7 @@ struct LongestStreakPickerView: View {
|
||||
.foregroundColor(textColor.opacity(0.6))
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.moodMenu)
|
||||
|
||||
Spacer()
|
||||
|
||||
@@ -225,6 +230,7 @@ struct LongestStreakPickerView: View {
|
||||
.background(Color.green)
|
||||
.cornerRadius(14)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Sharing.shareButton)
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.top, 12)
|
||||
.padding(.bottom, 24)
|
||||
|
||||
Reference in New Issue
Block a user