Merge pull request #51309 from nextcloud/backport/51260/master

test(cypress): rename select all clear
pull/52424/head
Andy Scherzinger 6 months ago committed by GitHub
commit c45c792622
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      cypress/e2e/files/FilesUtils.ts

@ -181,8 +181,7 @@ export const renameFile = (fileName: string, newFileName: string) => {
// intercept the move so we can wait for it
cy.intercept('MOVE', /\/(remote|public)\.php\/dav\/files\//).as('moveFile')
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').clear()
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`${newFileName}{enter}`)
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`{selectAll}${newFileName}{enter}`)
cy.wait('@moveFile')
}

Loading…
Cancel
Save