Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<NudgeCategory> = [.walk, .moderate, .celebrate, .sunlight, .hydrate]
let growthCategories: Set<NudgeCategory> = [.walk, .moderate, .celebrate, .sunlight, .hydrate, .seekGuidance]
let allNudgeCategories: Set<NudgeCategory> = [.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
Expand All @@ -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"
)
}

Expand Down
Loading