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:
@@ -140,6 +140,7 @@ struct TipModalView: View {
|
||||
y: 6
|
||||
)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.TipModal.dismissButton)
|
||||
.padding(.horizontal, 24)
|
||||
.padding(.bottom, 24)
|
||||
.opacity(appeared ? 1 : 0)
|
||||
@@ -308,6 +309,7 @@ struct TipsPreviewView: View {
|
||||
}
|
||||
.padding(.vertical, 4)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.TipModal.tipPreviewButton(index))
|
||||
}
|
||||
} header: {
|
||||
Text("Tap to preview")
|
||||
@@ -320,11 +322,13 @@ struct TipsPreviewView: View {
|
||||
ReflectTipsManager.shared.resetAllTips()
|
||||
}
|
||||
.foregroundColor(.red)
|
||||
.accessibilityIdentifier(AccessibilityID.TipModal.resetTipsButton)
|
||||
|
||||
Toggle("Tips Enabled", isOn: Binding(
|
||||
get: { ReflectTipsManager.shared.tipsEnabled },
|
||||
set: { ReflectTipsManager.shared.tipsEnabled = $0 }
|
||||
))
|
||||
.accessibilityIdentifier(AccessibilityID.TipModal.tipsEnabledToggle)
|
||||
} header: {
|
||||
Text("Settings")
|
||||
}
|
||||
@@ -346,6 +350,7 @@ struct TipsPreviewView: View {
|
||||
Button("Done") {
|
||||
dismiss()
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.TipModal.doneButton)
|
||||
}
|
||||
}
|
||||
.sheet(item: Binding(
|
||||
|
||||
Reference in New Issue
Block a user