Fix delete entry test by scrolling to off-screen button

The new reflection section pushed the delete button below the fold
in the entry detail sheet, causing the tap to miss.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-11 16:42:31 -05:00
parent bb9b6bb381
commit 07b03fc8a1

View File

@@ -37,6 +37,10 @@ struct EntryDetailScreen {
func deleteEntry() {
let button = deleteButton
// Scroll down to reveal delete button (may be off-screen below reflection/notes/photo sections)
if button.waitForExistence(timeout: 3) && !button.isHittable {
sheet.swipeUp()
}
button.tapWhenReady(timeout: 5)
let alert = app.alerts.firstMatch