Merge pull request #52422 from nextcloud/backport/51309/stable31

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

@ -171,8 +171,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