// // HighContrastTests.swift // Tests iOS // // TC-144: App remains functional in High Contrast mode. // import XCTest final class HighContrastTests: BaseUITestCase { override var seedFixture: String? { "single_mood" } override var bypassSubscription: Bool { true } override var extraLaunchArguments: [String] { ["-UIAccessibilityDarkerSystemColorsEnabled", "YES"] } /// TC-144: App is navigable with High Contrast mode enabled. func testHighContrast_AppRemainsNavigable() { let tabBar = TabBarScreen(app: app) tabBar.assertVisible() captureScreenshot(name: "high_contrast_day") tabBar.tapMonth() let monthGrid = app.element(UITestID.Month.grid) monthGrid.waitForExistenceOrFail( timeout: navigationTimeout, message: "Month grid should work with High Contrast" ) tabBar.tapYear() let heatmap = app.element(UITestID.Year.heatmap) heatmap.waitForExistenceOrFail( timeout: navigationTimeout, message: "Year heatmap should work with High Contrast" ) let settingsScreen = tabBar.tapSettings() settingsScreen.assertVisible() captureScreenshot(name: "high_contrast_settings") } }