// // 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() { // Day tab should have content assertDayContentVisible() captureScreenshot(name: "high_contrast_day") let tabBar = TabBarScreen(app: app) // Navigate through tabs tabBar.tapMonth() XCTAssertTrue( tabBar.monthTab.waitForExistence(timeout: 5), "Month tab should work with High Contrast" ) tabBar.tapYear() XCTAssertTrue( tabBar.yearTab.waitForExistence(timeout: 5), "Year tab should work with High Contrast" ) let settingsScreen = tabBar.tapSettings() settingsScreen.assertVisible() captureScreenshot(name: "high_contrast_settings") } }