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

@@ -19,13 +19,11 @@ final class StabilityTests: BaseUITestCase {
captureScreenshot(name: "stability_day")
// 2. Open entry detail
let firstEntry = app.descendants(matching: .any)
.matching(NSPredicate(format: "identifier BEGINSWITH %@", "entry_row_"))
.firstMatch
let firstEntry = app.firstEntryRow
if firstEntry.waitForExistence(timeout: 5) {
firstEntry.tap()
firstEntry.tapWhenReady()
let detailScreen = EntryDetailScreen(app: app)
if detailScreen.navigationTitle.waitForExistence(timeout: 3) {
if detailScreen.sheet.waitForExistence(timeout: 3) {
captureScreenshot(name: "stability_entry_detail")
detailScreen.dismiss()
detailScreen.assertDismissed()