From 3b4463d1955e367944d2de13240e11f612bf1a78 Mon Sep 17 00:00:00 2001 From: Martin Ohlson Date: Fri, 23 Feb 2024 15:00:58 +0000 Subject: [PATCH] test: scroll recommended dimension in to view --- cypress/elements/dimensionsPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/elements/dimensionsPanel.js b/cypress/elements/dimensionsPanel.js index e795e99d11..73b2e09d01 100644 --- a/cypress/elements/dimensionsPanel.js +++ b/cypress/elements/dimensionsPanel.js @@ -75,6 +75,7 @@ export const expectDimensionToNotHaveSelectedStyle = (dimensionId) => export const expectRecommendedIconToBeVisible = (dimensionId) => cy .getBySel(getDimensionButtonById(dimensionId)) + .scrollIntoView() .findBySel(recommendedIconEl) .should('have.length', 1) .and('be.visible')