- TC-148: Year View heatmap grid renders with data (added accessibility ID) - TC-143: App navigable with Reduce Motion enabled - TC-144: App navigable with High Contrast mode enabled - Marked 89 blocked tests RED in QA spreadsheet Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
62 lines
1.7 KiB
Swift
62 lines
1.7 KiB
Swift
//
|
|
// ReduceMotionTests.swift
|
|
// Tests iOS
|
|
//
|
|
// TC-143: App remains functional with Reduce Motion enabled.
|
|
//
|
|
|
|
import XCTest
|
|
|
|
final class ReduceMotionTests: BaseUITestCase {
|
|
override var seedFixture: String? { "single_mood" }
|
|
override var bypassSubscription: Bool { true }
|
|
|
|
override func setUp() {
|
|
// Do NOT call super — we need custom accessibility launch args
|
|
continueAfterFailure = false
|
|
|
|
let application = XCUIApplication()
|
|
let args: [String] = [
|
|
"--ui-testing", "--disable-animations",
|
|
"--reset-state",
|
|
"--bypass-subscription",
|
|
"--skip-onboarding",
|
|
"-AppleLanguages", "(en)",
|
|
"-AppleLocale", "en_US",
|
|
"-UIReduceMotionPreference", "YES"
|
|
]
|
|
application.launchArguments = args
|
|
application.launchEnvironment = ["UI_TEST_FIXTURE": "single_mood"]
|
|
application.launch()
|
|
app = application
|
|
}
|
|
|
|
/// TC-143: App is navigable with Reduce Motion enabled.
|
|
func testReduceMotion_AppRemainsNavigable() {
|
|
// Day tab should have content
|
|
assertDayContentVisible()
|
|
|
|
captureScreenshot(name: "reduce_motion_day")
|
|
|
|
let tabBar = TabBarScreen(app: app)
|
|
|
|
// Navigate through tabs
|
|
tabBar.tapMonth()
|
|
XCTAssertTrue(
|
|
tabBar.monthTab.waitForExistence(timeout: 5),
|
|
"Month tab should work with Reduce Motion"
|
|
)
|
|
|
|
tabBar.tapYear()
|
|
XCTAssertTrue(
|
|
tabBar.yearTab.waitForExistence(timeout: 5),
|
|
"Year tab should work with Reduce Motion"
|
|
)
|
|
|
|
let settingsScreen = tabBar.tapSettings()
|
|
settingsScreen.assertVisible()
|
|
|
|
captureScreenshot(name: "reduce_motion_settings")
|
|
}
|
|
}
|