feat: add WCAG AA accessibility app-wide, fix CloudKit container config, remove debug logs
- Add VoiceOver labels, hints, and element grouping across all 60+ views - Add Reduce Motion support (Theme.Animation.prefersReducedMotion) to all animations - Replace fixed font sizes with semantic Dynamic Type styles - Hide decorative elements from VoiceOver with .accessibilityHidden(true) - Add .minimumHitTarget() modifier ensuring 44pt touch targets - Add AccessibilityAnnouncer utility for VoiceOver announcements - Improve color contrast values in Theme.swift for WCAG AA compliance - Extract CloudKitContainerConfig for explicit container identity - Remove PostHog debug console log from AnalyticsManager Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,28 @@ final class SportsTimeUITests: XCTestCase {
|
||||
// Put teardown code here.
|
||||
}
|
||||
|
||||
// MARK: - Accessibility Smoke Tests
|
||||
|
||||
/// Verifies primary entry flow remains usable at a large accessibility text size.
|
||||
@MainActor
|
||||
func testAccessibilitySmoke_LargeDynamicTypeEntryFlow() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launchArguments = [
|
||||
"-UIPreferredContentSizeCategoryName",
|
||||
"UICTContentSizeCategoryAccessibilityXXXL"
|
||||
]
|
||||
app.launch()
|
||||
|
||||
let startPlanningButton = app.buttons["home.startPlanningButton"]
|
||||
XCTAssertTrue(startPlanningButton.waitForExistence(timeout: 20), "Start Planning should exist at large Dynamic Type")
|
||||
XCTAssertTrue(startPlanningButton.isHittable, "Start Planning should remain hittable at large Dynamic Type")
|
||||
startPlanningButton.tap()
|
||||
|
||||
let dateRangeMode = app.buttons["wizard.planningMode.dateRange"]
|
||||
XCTAssertTrue(dateRangeMode.waitForExistence(timeout: 10), "Planning mode options should load")
|
||||
XCTAssertTrue(dateRangeMode.isHittable, "Planning mode option should remain hittable at large Dynamic Type")
|
||||
}
|
||||
|
||||
// MARK: - Demo Flow Test (Continuous Scroll Mode)
|
||||
|
||||
/// Complete trip planning demo with continuous smooth scrolling.
|
||||
|
||||
Reference in New Issue
Block a user