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:
@@ -538,6 +538,7 @@ struct CelebrationAnimationPickerCompact: View {
|
||||
)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.celebrationAnimationButton(animation.rawValue))
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 4)
|
||||
@@ -666,6 +667,7 @@ struct CustomWidgetSection: View {
|
||||
CustomWidgetView(customWidgetModel: widget)
|
||||
.frame(width: 60, height: 60)
|
||||
.cornerRadius(12)
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.customWidget(UserDefaultsStore.getCustomWidgets().firstIndex(where: { $0.uuid == widget.uuid }) ?? 0))
|
||||
.onTapGesture {
|
||||
AnalyticsManager.shared.track(.widgetViewed)
|
||||
selectedWidget.selectedItem = widget.copy() as? CustomWidgetModel
|
||||
@@ -689,6 +691,7 @@ struct CustomWidgetSection: View {
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.customWidgetAdd)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -701,6 +704,7 @@ struct CustomWidgetSection: View {
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
}
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.widgetHowToLink)
|
||||
}
|
||||
.sheet(isPresented: $selectedWidget.showSheet) {
|
||||
if let selectedItem = selectedWidget.selectedItem {
|
||||
@@ -822,6 +826,7 @@ struct SubscriptionBannerView: View {
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 8)
|
||||
.background(Capsule().fill(Color.green.opacity(0.15)))
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.manageSubscriptionButton)
|
||||
}
|
||||
.padding(16)
|
||||
}
|
||||
@@ -866,6 +871,7 @@ struct SubscriptionBannerView: View {
|
||||
)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityIdentifier(AccessibilityID.Customize.unlockPremiumButton)
|
||||
}
|
||||
|
||||
private func openSubscriptionManagement() async {
|
||||
|
||||
Reference in New Issue
Block a user