Stabilize iOS UI test foundation and fix flaky suites

This commit is contained in:
Trey t
2026-02-17 22:24:08 -06:00
parent c28d7a59eb
commit 56ac783219
38 changed files with 543 additions and 585 deletions

View File

@@ -20,16 +20,8 @@ final class MoodLoggingEmptyStateTests: BaseUITestCase {
// Tap "Great" mood button
dayScreen.logMood(.great)
// After logging, verify entry was created.
// The formatted date string depends on locale; verify at least
// one entry row exists via accessibility label containing "Great".
let greatEntry = app.descendants(matching: .any)
.matching(NSPredicate(format: "label CONTAINS[cd] %@", "Great"))
.firstMatch
XCTAssertTrue(
greatEntry.waitForExistence(timeout: 8),
"An entry labeled 'Great' should appear after logging"
)
// After logging, verify at least one entry row was created.
dayScreen.assertAnyEntryExists()
captureScreenshot(name: "mood_logged_great")
}