diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 6d9dd5db29c..c5cf132ac5b 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({ offset: { top: 200 } }) + .scrollIntoView({ offset: { top: -200 } }) cy.getFile(name) .find('.files-list__row-icon img') .should('be.visible')