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:
@@ -176,12 +176,13 @@ struct AllMoodsTotalTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.shareButton)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
Color.green
|
||||
)
|
||||
.padding(.trailing, -5)
|
||||
|
||||
|
||||
Button(action: {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
}, label: {
|
||||
@@ -191,6 +192,7 @@ struct AllMoodsTotalTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.dismissButton)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
Color.red
|
||||
|
||||
@@ -119,6 +119,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.shareButton)
|
||||
.sheet(isPresented: self.$shareImage.showSheet) {
|
||||
if let uiImage = self.shareImage.selectedShareImage {
|
||||
ShareSheet(photo: uiImage)
|
||||
@@ -129,7 +130,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
|
||||
Color.green
|
||||
)
|
||||
.padding(.trailing, -5)
|
||||
|
||||
|
||||
Button(action: {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
}, label: {
|
||||
@@ -139,6 +140,7 @@ struct CurrentStreakTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.dismissButton)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
Color.red
|
||||
|
||||
@@ -167,6 +167,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
|
||||
selectedMood = mood
|
||||
configureData(fakeData: self.fakeData, mood: self.selectedMood)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.moodMenuButton(mood.strValue))
|
||||
}
|
||||
}, label: {
|
||||
Text("Pick Mood")
|
||||
@@ -174,6 +175,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
|
||||
.foregroundColor(textColor)
|
||||
.padding()
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.moodMenu)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
theme.currentTheme.secondaryBGColor
|
||||
@@ -194,6 +196,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.shareButton)
|
||||
.sheet(isPresented: self.$shareImage.showSheet) {
|
||||
if let uiImage = self.shareImage.selectedShareImage {
|
||||
ShareSheet(photo: uiImage)
|
||||
@@ -204,7 +207,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
|
||||
Color.green
|
||||
)
|
||||
.padding(.trailing, -5)
|
||||
|
||||
|
||||
Button(action: {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
}, label: {
|
||||
@@ -214,6 +217,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.dismissButton)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
Color.red
|
||||
|
||||
@@ -159,6 +159,7 @@ struct MonthTotalTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.shareButton)
|
||||
.sheet(isPresented: self.$shareImage.showSheet) {
|
||||
if let uiImage = self.shareImage.selectedShareImage {
|
||||
ShareSheet(photo: uiImage)
|
||||
@@ -169,7 +170,7 @@ struct MonthTotalTemplate: View, SharingTemplate {
|
||||
Color.green
|
||||
)
|
||||
.padding(.trailing, -5)
|
||||
|
||||
|
||||
Button(action: {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
}, label: {
|
||||
@@ -179,6 +180,7 @@ struct MonthTotalTemplate: View, SharingTemplate {
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.top, 20)
|
||||
})
|
||||
.accessibilityIdentifier(AccessibilityID.SharingTemplate.dismissButton)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
.background(
|
||||
Color.red
|
||||
|
||||
Reference in New Issue
Block a user