From 0619fafd2874d6c6ee58df90dd7b5d66485313ad Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 20 Aug 2026 14:53:04 +0200 Subject: [PATCH] fix(web-tests): scroll the highlighted technique into view before asserting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same class of failure as the household-settings sources scenario earlier this session: the steps section sits below the detail panel's header/photo/description, off the fold of .app-content's own scroll — a bare .should("be.visible") doesn't auto-scroll. Co-Authored-By: Claude Sonnet 5 --- apps/web/cypress/e2e/recipes.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) => {