Stabilize iOS UI test foundation and fix flaky suites
This commit is contained in:
@@ -13,9 +13,7 @@ final class EntryDetailTests: BaseUITestCase {
|
||||
/// Tap an entry row -> Entry Detail sheet opens -> dismiss it.
|
||||
func testTapEntry_OpensDetailSheet_Dismiss() {
|
||||
// Find the first entry row by identifier prefix
|
||||
let firstEntry = app.descendants(matching: .any)
|
||||
.matching(NSPredicate(format: "identifier BEGINSWITH %@", "entry_row_"))
|
||||
.firstMatch
|
||||
let firstEntry = app.firstEntryRow
|
||||
|
||||
guard firstEntry.waitForExistence(timeout: 5) else {
|
||||
XCTFail("No entry rows found in seeded data")
|
||||
@@ -36,9 +34,7 @@ final class EntryDetailTests: BaseUITestCase {
|
||||
|
||||
/// Open entry detail and change mood, then dismiss.
|
||||
func testChangeMood_ViaEntryDetail() {
|
||||
let firstEntry = app.descendants(matching: .any)
|
||||
.matching(NSPredicate(format: "identifier BEGINSWITH %@", "entry_row_"))
|
||||
.firstMatch
|
||||
let firstEntry = app.firstEntryRow
|
||||
|
||||
guard firstEntry.waitForExistence(timeout: 5) else {
|
||||
XCTFail("No entry rows found in seeded data")
|
||||
|
||||
Reference in New Issue
Block a user