Skip to content

Commit 7bdb165

Browse files
authored
Merge pull request #6158 from nextcloud/ci/row-name-link
ci(cypress): Adapt to file name link being a button now
2 parents 7544f04 + d78a72f commit 7bdb165

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/support/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Cypress.Commands.add('moveFile', (path, destinationPath) => {
198198
// For files wait for preview to load and release lock
199199
Cypress.Commands.add('waitForPreview', name => {
200200
cy.getFile(name)
201-
.scrollIntoView()
201+
.scrollIntoView({ offset: { top: -200 } })
202202
cy.getFile(name)
203203
.find('.files-list__row-icon img')
204204
.should('be.visible')
@@ -269,7 +269,7 @@ Cypress.Commands.add('getFileId', (fileName, params = {}) => {
269269
})
270270

271271
Cypress.Commands.add('openFile', (fileName, params = {}) => {
272-
cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] a[data-cy-files-list-row-name-link]`).click(params)
272+
cy.get(`[data-cy-files-list] tr[data-cy-files-list-row-name="${fileName}"] [data-cy-files-list-row-name-link]`).click(params)
273273
})
274274

275275
Cypress.Commands.add('openFileInShare', fileName => {

0 commit comments

Comments
 (0)