Add 3 passing UI tests (batch 5): heatmap, reduce motion, high contrast
- 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>
This commit is contained in:
61
Tests iOS/ReduceMotionTests.swift
Normal file
61
Tests iOS/ReduceMotionTests.swift
Normal file
@@ -0,0 +1,61 @@
|
||||
//
|
||||
// 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user