Add 3 passing UI tests (batch 4): personality pack, Spanish locale, accessibility text size
- TC-052: Personality pack selection in Customize tab with accessibility IDs - TC-137: Spanish localization verification (Ajustes, tab labels) - TC-142: App navigable at XXL accessibility text size Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
62
Tests iOS/AccessibilityTextSizeTests.swift
Normal file
62
Tests iOS/AccessibilityTextSizeTests.swift
Normal file
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// AccessibilityTextSizeTests.swift
|
||||
// Tests iOS
|
||||
//
|
||||
// TC-142: App remains functional at largest accessibility text size.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
final class AccessibilityTextSizeTests: BaseUITestCase {
|
||||
override var seedFixture: String? { "single_mood" }
|
||||
override var bypassSubscription: Bool { true }
|
||||
|
||||
override func setUp() {
|
||||
// Do NOT call super — we need custom content size launch args
|
||||
continueAfterFailure = false
|
||||
|
||||
let application = XCUIApplication()
|
||||
var args: [String] = [
|
||||
"--ui-testing", "--disable-animations",
|
||||
"--reset-state",
|
||||
"--bypass-subscription",
|
||||
"--skip-onboarding",
|
||||
"-AppleLanguages", "(en)",
|
||||
"-AppleLocale", "en_US",
|
||||
"-UIPreferredContentSizeCategoryName", "UICTContentSizeCategoryAccessibilityXXL"
|
||||
]
|
||||
application.launchArguments = args
|
||||
application.launchEnvironment = ["UI_TEST_FIXTURE": "single_mood"]
|
||||
application.launch()
|
||||
app = application
|
||||
}
|
||||
|
||||
/// TC-142: App launches and is navigable at largest accessibility text size.
|
||||
func testLargestTextSize_AppRemainsNavigable() {
|
||||
// Verify Day tab is loaded and has content
|
||||
assertDayContentVisible()
|
||||
|
||||
captureScreenshot(name: "accessibility_xxl_day")
|
||||
|
||||
// Navigate through all tabs to verify nothing crashes
|
||||
let tabBar = TabBarScreen(app: app)
|
||||
|
||||
tabBar.tapMonth()
|
||||
XCTAssertTrue(
|
||||
tabBar.monthTab.waitForExistence(timeout: 5),
|
||||
"Month tab should be accessible at XXL text size"
|
||||
)
|
||||
captureScreenshot(name: "accessibility_xxl_month")
|
||||
|
||||
tabBar.tapYear()
|
||||
XCTAssertTrue(
|
||||
tabBar.yearTab.waitForExistence(timeout: 5),
|
||||
"Year tab should be accessible at XXL text size"
|
||||
)
|
||||
captureScreenshot(name: "accessibility_xxl_year")
|
||||
|
||||
let settingsScreen = tabBar.tapSettings()
|
||||
settingsScreen.assertVisible()
|
||||
captureScreenshot(name: "accessibility_xxl_settings")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user