Stabilize iOS UI test foundation and fix flaky suites
This commit is contained in:
@@ -13,9 +13,7 @@ final class DayViewGroupingTests: BaseUITestCase {
|
||||
/// TC-019: Entries are grouped by year/month section headers.
|
||||
func testEntries_GroupedBySectionHeaders() {
|
||||
// 1. Wait for entry list to load with seeded data
|
||||
let firstEntry = app.descendants(matching: .any)
|
||||
.matching(NSPredicate(format: "identifier BEGINSWITH %@", "entry_row_"))
|
||||
.firstMatch
|
||||
let firstEntry = app.firstEntryRow
|
||||
XCTAssertTrue(
|
||||
firstEntry.waitForExistence(timeout: 5),
|
||||
"Entry rows should exist with week_of_moods fixture"
|
||||
@@ -23,7 +21,7 @@ final class DayViewGroupingTests: BaseUITestCase {
|
||||
|
||||
// 2. Verify at least one section header exists
|
||||
let anySectionHeader = app.descendants(matching: .any)
|
||||
.matching(NSPredicate(format: "identifier BEGINSWITH %@", "day_section_"))
|
||||
.matching(NSPredicate(format: "identifier BEGINSWITH %@", UITestID.Day.sectionPrefix))
|
||||
.firstMatch
|
||||
XCTAssertTrue(
|
||||
anySectionHeader.waitForExistence(timeout: 5),
|
||||
|
||||
Reference in New Issue
Block a user