From b406b4b11bf193d8ef67af87c3d4422eae11d912 Mon Sep 17 00:00:00 2001
From: Kamil Mielnik <kamil@kamilmielnik.com>
Date: Wed, 6 Nov 2024 21:15:33 +0700
Subject: [PATCH] Revert "Revert previous changes"

This reverts commit 16b56f268eab72e3102276ebb76dbd62c8edc924.
---
 .../scenarios/dashboard/dashboard-reproductions.cy.spec.js  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
index c244a6b97ed..b29fdb4556e 100644
--- a/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
+++ b/e2e/test/scenarios/dashboard/dashboard-reproductions.cy.spec.js
@@ -738,7 +738,7 @@ describe("issue 31274", () => {
         size_x: 2,
         size_y: 2,
         row: (length - index - 1) * 2,
-        text: `Text card ${index + 1}`,
+        text: `Text ${index + 1}`,
       });
     });
   };
@@ -769,13 +769,11 @@ describe("issue 31274", () => {
         scrollBehavior: "top", // prevents flaky tests
       });
 
-      visibleActionsPanel().should("have.length", 1);
-
       cy.log(
         "Make sure cypress can click the element, which means it is not covered by another",
       );
 
-      visibleActionsPanel().icon("close").click({
+      visibleActionsPanel().should("have.length", 1).icon("close").click({
         position: "top",
       });
 
-- 
GitLab