diff --git a/cypress/integration/list_view.js b/cypress/integration/list_view.js index d6cc16fef1..397c91215b 100644 --- a/cypress/integration/list_view.js +++ b/cypress/integration/list_view.js @@ -65,10 +65,9 @@ context("List View", () => { cy.go_to_list("ToDo"); // Check if the 'Open' button is present in the ToDo list view - cy.get(".btn-default[data-name='" + todo_name + "']") - .should((el) => { - expect(el).to.exist; - }) + cy.get(`.btn-default[data-name="${todo_name}"]`) + .scrollIntoView({ inline: "center", block: "nearest" }) + .should("be.visible") .click(); cy.window()