Add F-068, F-069, F-070 UI tests for custom itinerary item lifecycle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-19 23:49:29 -06:00
parent 8421b23f0c
commit 2d759274a8
5 changed files with 299 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ struct QuickAddItemSheet: View {
.foregroundStyle(canSave ? Theme.warmOrange : Theme.textMuted(colorScheme))
.disabled(!canSave)
.accessibilityLabel(saveButtonAccessibilityLabel)
.accessibilityIdentifier("quickAdd.saveButton")
}
}
.sheet(isPresented: $showLocationSearch) {
@@ -137,6 +138,7 @@ struct QuickAddItemSheet: View {
)
.accessibilityLabel("Item description")
.accessibilityHint(placeholderText)
.accessibilityIdentifier("quickAdd.titleField")
// Character hint
if !title.isEmpty {

View File

@@ -1113,6 +1113,7 @@ final class ItineraryTableViewController: UITableViewController {
cell.backgroundColor = .clear
cell.selectionStyle = .default // Shows highlight on tap
cell.accessibilityIdentifier = "tripDetail.customItem"
}
}
@@ -1175,6 +1176,7 @@ struct DaySectionHeaderView: View {
.tint(Theme.warmOrange)
.accessibilityLabel("Add item to Day \(dayNumber)")
.accessibilityHint("Add restaurants, activities, or notes to this day")
.accessibilityIdentifier("tripDetail.addItemButton")
}
.padding(.horizontal, Theme.Spacing.lg)
.padding(.top, Theme.Spacing.lg) // More space above for section separation