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:
@@ -37,6 +37,10 @@ struct EntryDetailScreen {
|
|||||||
|
|
||||||
func deleteEntry() {
|
func deleteEntry() {
|
||||||
let button = deleteButton
|
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)
|
button.tapWhenReady(timeout: 5)
|
||||||
|
|
||||||
let alert = app.alerts.firstMatch
|
let alert = app.alerts.firstMatch
|
||||||
|
|||||||
Reference in New Issue
Block a user