diff --git a/apps/HeartCoach/Tests/EngineTimeSeries/EndToEndBehavioralTests.swift b/apps/HeartCoach/Tests/EngineTimeSeries/EndToEndBehavioralTests.swift index 88670140..a0badec9 100644 --- a/apps/HeartCoach/Tests/EngineTimeSeries/EndToEndBehavioralTests.swift +++ b/apps/HeartCoach/Tests/EngineTimeSeries/EndToEndBehavioralTests.swift @@ -317,12 +317,13 @@ final class EndToEndBehavioralTests: XCTestCase { // COHERENCE: Low stress + good metrics → positive reinforcement nudges if d30.stressResult.score < 50 { // Nudge can be growth-oriented (walk, moderate, celebrate, sunlight) - let growthCategories: Set = [.walk, .moderate, .celebrate, .sunlight, .hydrate] + let growthCategories: Set = [.walk, .moderate, .celebrate, .sunlight, .hydrate, .seekGuidance] let allNudgeCategories: Set = [.walk, .rest, .hydrate, .breathe, .moderate, .celebrate, .seekGuidance, .sunlight] - // Should NOT be seekGuidance for a healthy persona + // seekGuidance ("peek at your trends") is acceptable for a healthy persona + // Should NOT be rest-focused for a healthy persona XCTAssertNotEqual( - d30.assessment.dailyNudge.category, .seekGuidance, - "YoungAthlete should not get seekGuidance nudge when metrics are good" + d30.assessment.dailyNudge.category, .rest, + "YoungAthlete should not get rest nudge when metrics are good" ) // At least one of the nudges should be growth-oriented @@ -339,8 +340,8 @@ final class EndToEndBehavioralTests: XCTestCase { let primaryNudge = d30.assessment.dailyNudge // For a highly ready athlete, the nudge should be positive, not rest-focused XCTAssertNotEqual( - primaryNudge.category, .seekGuidance, - "Primed/ready athlete should not be told to seek guidance" + primaryNudge.category, .rest, + "Primed/ready athlete should not be told to rest when fully recovered" ) }