From a598eb3ac245d9073d45ef8a7fe2e9dcd9aa78d4 Mon Sep 17 00:00:00 2001 From: BK Date: Fri, 16 Oct 2026 13:11:07 +0700 Subject: [PATCH] feat: calorie_result_title identifier for unique Calorie Result assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The header string (onboarding.result.title) is also rendered by GoalSetupView's live-target preview card, and both screens stay mounted in the NavigationStack — a label-based E2E expect matched 3 elements ('bound not met — found 3, exactly 1', Lionidas run_f8e763a4). A unique identifier gives the suite a locale-free, uniqueness-safe assertion. Lionidas-In-Place: session sess_451c34f0-ceb, user-authorized --- Foodiary/Views/Onboarding/CalorieResultView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Foodiary/Views/Onboarding/CalorieResultView.swift b/Foodiary/Views/Onboarding/CalorieResultView.swift index d537130..9a5ca09 100644 --- a/Foodiary/Views/Onboarding/CalorieResultView.swift +++ b/Foodiary/Views/Onboarding/CalorieResultView.swift @@ -64,6 +64,7 @@ struct CalorieResultView: View { Text(L10n["onboarding.result.title"]) .font(FoodiaryTypography.pulseCaption) .foregroundColor(FoodiaryDesign.pulseMuted) + .accessibilityIdentifier("calorie_result_title") Text(fmt(target.targetCalories)) .font(.system(size: 52, weight: .heavy, design: .rounded).monospacedDigit())