diff --git a/apps/web/cypress/e2e/recipes.ts b/apps/web/cypress/e2e/recipes.ts index 90f9554..42e3f34 100644 --- a/apps/web/cypress/e2e/recipes.ts +++ b/apps/web/cypress/e2e/recipes.ts @@ -113,7 +113,11 @@ Then("the URL should match the recipes list", () => { }); Then("I should see the highlighted technique {string}", (text: string) => { - cy.contains(".step-tech-step", text).should("be.visible"); + // The steps section sits below the panel's header/photo/description, off + // the fold of `.app-content`'s own scroll (see layout.cy.ts) — a bare + // `.should("be.visible")` doesn't auto-scroll, same fix as + // household-settings.feature's sources-section scenario. + cy.contains(".step-tech-step", text).scrollIntoView().should("be.visible"); }); When("I focus the highlighted technique {string}", (text: string) => {