Stabilize iOS UI test foundation and fix flaky suites
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user