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:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user