fix(recipes): corrige la numérotation des étapes faussée par le popover de correction #31

Merged
kyuno merged 4 commits from fix/step-counter-scoped-to-direct-children into main 2026-09-05 11:30:50 +02:00
Showing only changes of commit 3b78582d29 - Show all commits

View file

@ -180,7 +180,12 @@ Then("the ingredient {string} should be visible in the picker", (name: string) =
});
Then("the recipe should include the ingredient {string}", (name: string) => {
cy.contains(".ingredient-row__name", name).should("be.visible");
// Same reasoning as "I should see the highlighted technique" above: on the
// recipe-edit form the ingredients list can sit below the fold of
// `.app-content`'s own scroll (Nom/Description/Photo/Portions/Visibilité/
// Régimes all come first), and a bare `.should("be.visible")` doesn't
// auto-scroll — only interaction commands like `.click()`/`.check()` do.
cy.contains(".ingredient-row__name", name).scrollIntoView().should("be.visible");
});
Then("there should be {int} ingredient rows", (count: number) => {