From accce48cd8a0a44b442acaac32ffc7f053a7ed0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 5 Aug 2024 08:59:57 +0200 Subject: [PATCH] ci: Fix file list to scroll entry to visible area MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 2637a42c6c9..6d9dd5db29c 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -198,7 +198,7 @@ Cypress.Commands.add('moveFile', (path, destinationPath) => { // For files wait for preview to load and release lock Cypress.Commands.add('waitForPreview', name => { cy.getFile(name) - .scrollIntoView() + .scrollIntoView({ offset: { top: 200 } }) cy.getFile(name) .find('.files-list__row-icon img') .should('be.visible')