Feature: Adding a recipe to the planning As a signed-in user I want to add a recipe to a planning slot even when I haven't imported it yet So that browsing an external source and planning it is a single trip Background: Given I am signed in as "Alice" "Martin" And my household id is 1 And today is frozen at "2026-08-17T09:00:00.000Z" And the household request returns no household And the recipe catalog contains nothing And the ingredient and diet catalog is available for import And the sources reference list has options And the household has enabled TheMealDB And browsing TheMealDB returns some items And the planning request reflects whatever's been added so far Scenario: Adds a not-yet-imported source item to a planning slot, importing it on the way Given previewing TheMealDB item "9999" is available And importing the previewed item will succeed and return id 99 And adding the imported recipe to the planning will succeed When I visit "/" And I click the add button for the first empty planning slot And I click the button "Sources" And I click the source item "Fish Pie" And I click the link "Importer cette recette" Then I should see "Cette recette sera automatiquement ajoutée à votre planning une fois importée." When I choose an ingredient for the unresolved line "some mystery paste" And I select the ingredient "Sel" from the picker And I select unit "unité" for the first ingredient And I fill in the last ingredient's quantity with "1" and unit "unité" And I click the button "Importer" Then the planning add request should have included recipe 99, weekDay "lundi", meal "petit-dejeuner", and portions 4 And the URL should be the home page And the recipe "Fish Pie" should appear in the first planning slot with 4 portions When I click the add button for the first empty planning slot And I click the button "Sources" Then the source item "Fish Pie" should be marked as already imported