Feature: Profile regime and allergens As a signed-in user I want to set my dietary regime and allergens/intolerances So that the household's meal planning can account for them later Scenario: A visitor without a session cannot set a regime When I send a PATCH request to "/profile/diet" with body: """ { "dietId": 1 } """ Then the response status should be 401 And the response error code should be "NOT_AUTHENTICATED" Scenario: A signed-in user sets their regime to a valid, seeded diet Given a profile already exists with email "alice@example.com" and password "correct-horse-battery-staple" And I log in with email "alice@example.com" and password "correct-horse-battery-staple" When I set my regime to "Végétarien" Then the response status should be 200 And my profile's regime should be "Végétarien" Scenario: A signed-in user selects allergens, then replaces the selection Given a profile already exists with email "alice@example.com" and password "correct-horse-battery-staple" And I log in with email "alice@example.com" and password "correct-horse-battery-staple" When I set my allergens to "Arachides, Gluten" Then the response status should be 200 And my selected allergens should be "Arachides, Gluten" When I set my allergens to "Lait" Then my selected allergens should be "Lait"